Merge pull request #1531
9d1d3a45 portable serializer: use signed char for size (kenshi84)
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user