diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2019-02-01 21:59:27 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2019-02-01 21:59:27 +0000 |
| commit | 2e719bc428d27345da7cdcfa634c03ec69f31474 (patch) | |
| tree | 8424b76ac0b2d8e985e0617c23e1440e49e18eb1 /libcxx/include/sstream | |
| parent | 259e1bdfdd2cb1c9bbcb6e0ce9014ad66535d27f (diff) | |
| download | bcm5719-llvm-2e719bc428d27345da7cdcfa634c03ec69f31474.tar.gz bcm5719-llvm-2e719bc428d27345da7cdcfa634c03ec69f31474.zip | |
add a test and a couple minor bug fixes for the implicit-signed-integer-truncation sanitizer. This is PR#40566
llvm-svn: 352926
Diffstat (limited to 'libcxx/include/sstream')
| -rw-r--r-- | libcxx/include/sstream | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/sstream b/libcxx/include/sstream index 71204e0fadd..14c91971c2f 100644 --- a/libcxx/include/sstream +++ b/libcxx/include/sstream @@ -558,7 +558,7 @@ basic_stringbuf<_CharT, _Traits, _Allocator>::overflow(int_type __c) char_type* __p = const_cast<char_type*>(__str_.data()); this->setg(__p, __p + __ninp, __hm_); } - return this->sputc(__c); + return this->sputc(traits_type::to_char_type(__c)); } return traits_type::not_eof(__c); } |

