diff options
author | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2018-05-03 10:45:31 +0300 |
---|---|---|
committer | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2018-05-03 10:45:31 +0300 |
commit | 6df0a8755638433065a4a65505ae539c5c5303d1 (patch) | |
tree | 498d18b373f57c5a2cc9df8a8a61de95899b0dc8 | |
parent | 42d1cd35c5a25fff440354beffa63aab2811f9ac (diff) | |
download | linaro-gcc-6df0a8755638433065a4a65505ae539c5c5303d1.tar.gz linaro-gcc-6df0a8755638433065a4a65505ae539c5c5303d1.tar.bz2 linaro-gcc-6df0a8755638433065a4a65505ae539c5c5303d1.zip |
Fix basic_string::clear, swap funcs.
Change-Id: I6d329a54ed9cfdd42103bb881c602d1d74f566a6
-rw-r--r-- | libstdc++-v3/include/bits/basic_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h index 2582ff08586..61e16ae4d94 100644 --- a/libstdc++-v3/include/bits/basic_string.h +++ b/libstdc++-v3/include/bits/basic_string.h @@ -1238,7 +1238,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 { __annotate_grow(_M_string_length, 0); #ifdef _GLIBCXX_DISABLE_STRING_SSO - _M_allocated_capacity ? _M_length(0) : _M_set_length(0); + _M_allocated_capacity ? _M_set_length(0) : _M_length(0); #else _M_set_length(0); #endif |