summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/sso_string_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/ext/sso_string_base.h')
-rw-r--r--libstdc++-v3/include/ext/sso_string_base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/ext/sso_string_base.h b/libstdc++-v3/include/ext/sso_string_base.h
index 9e5b50e6e24..6cb4302b688 100644
--- a/libstdc++-v3/include/ext/sso_string_base.h
+++ b/libstdc++-v3/include/ext/sso_string_base.h
@@ -361,9 +361,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_capacity(__rcs._M_allocated_capacity);
}
- _M_length(__rcs._M_length());
- __rcs._M_length(0);
+ _M_set_length(__rcs._M_length());
__rcs._M_data(__rcs._M_local_data);
+ __rcs._M_set_length(0);
}
#endif