mirror of
https://github.com/monero-project/monero.git
synced 2025-08-11 17:50:12 -04:00
portable serializer: use signed char for size
This commit is contained in:
parent
dd580d7bc7
commit
9d1d3a454e
3 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue