diff options
author | kenshi84 <kenshi84@protonmail.ch> | 2017-01-06 08:37:15 +0900 |
---|---|---|
committer | kenshi84 <kenshi84@protonmail.ch> | 2017-01-07 11:59:16 +0900 |
commit | 9d1d3a454e95098bebe1807f4d05f9378bfc0f81 (patch) | |
tree | e04a2fa845c6a4fbc95abe7cd7adca912e267e4a /external/boost/archive/portable_binary_oarchive.hpp | |
parent | Merge pull request #1487 (diff) | |
download | monero-9d1d3a454e95098bebe1807f4d05f9378bfc0f81.tar.xz |
portable serializer: use signed char for size
Diffstat (limited to 'external/boost/archive/portable_binary_oarchive.hpp')
-rw-r--r-- | external/boost/archive/portable_binary_oarchive.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external/boost/archive/portable_binary_oarchive.hpp b/external/boost/archive/portable_binary_oarchive.hpp index 8fd7090a1..271647cf7 100644 --- a/external/boost/archive/portable_binary_oarchive.hpp +++ b/external/boost/archive/portable_binary_oarchive.hpp @@ -225,7 +225,7 @@ portable_binary_oarchive::save_impl( const boost::intmax_t l,
const char maxsize
){
- char size = 0;
+ signed char size = 0;
if(l == 0){
this->primitive_base_t::save(size);
@@ -245,7 +245,7 @@ portable_binary_oarchive::save_impl( }while(ll != 0);
this->primitive_base_t::save(
- static_cast<char>(negative ? -size : size)
+ static_cast<signed char>(negative ? -size : size)
);
if(negative)
|