diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-01-08 16:43:35 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-01-08 16:43:35 -0800 |
commit | 278562d2c2df90fe56cdc6d7c3082c45795fd0ad (patch) | |
tree | 76733685f37c14e341334d3bf25470b670de2374 /external/boost/archive/portable_binary_oarchive.hpp | |
parent | Merge pull request #1521 (diff) | |
parent | portable serializer: use signed char for size (diff) | |
download | monero-278562d2c2df90fe56cdc6d7c3082c45795fd0ad.tar.xz |
Merge pull request #1531
9d1d3a45 portable serializer: use signed char for size (kenshi84)
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 74afe2357..9ed30d064 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)
|