diff --git a/include/loki/flex/smallstringopt.h b/include/loki/flex/smallstringopt.h index 70b7d57..86a0038 100755 --- a/include/loki/flex/smallstringopt.h +++ b/include/loki/flex/smallstringopt.h @@ -279,7 +279,7 @@ public: else { std::copy(b, e, buf_ + maxSmallString - buf_[maxSmallString]); - buf_[maxSmallString] -= value_type(sz); + buf_[maxSmallString] = buf_[maxSmallString] - value_type(sz); } } }