aboutsummaryrefslogtreecommitdiff
path: root/external/boost/archive/portable_binary_oarchive.hpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-08 16:43:35 -0800
committerRiccardo Spagni <ric@spagni.net>2017-01-08 16:43:35 -0800
commit278562d2c2df90fe56cdc6d7c3082c45795fd0ad (patch)
tree76733685f37c14e341334d3bf25470b670de2374 /external/boost/archive/portable_binary_oarchive.hpp
parentMerge pull request #1521 (diff)
parentportable serializer: use signed char for size (diff)
downloadmonero-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.hpp4
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)