diff options
author | SChernykh <sergey.v.chernykh@gmail.com> | 2022-02-19 10:17:53 +0100 |
---|---|---|
committer | SChernykh <sergey.v.chernykh@gmail.com> | 2022-02-19 10:17:53 +0100 |
commit | f68f92776baf89b65db41314102663be533cdb1a (patch) | |
tree | 0ac380e4d1f427701bf8db61eb1fe77115d0c773 /contrib/epee/include/net/levin_helper.h | |
parent | Merge pull request #8135 (diff) | |
download | monero-f68f92776baf89b65db41314102663be533cdb1a.tar.xz |
Undefined behaviour fixes
Fixes issues reported in #8120
Diffstat (limited to 'contrib/epee/include/net/levin_helper.h')
-rw-r--r-- | contrib/epee/include/net/levin_helper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/epee/include/net/levin_helper.h b/contrib/epee/include/net/levin_helper.h index da926a914..541e0948d 100644 --- a/contrib/epee/include/net/levin_helper.h +++ b/contrib/epee/include/net/levin_helper.h @@ -46,7 +46,7 @@ namespace levin levin::bucket_head& head = *(levin::bucket_head*)(&buff[0]); head.m_signature = SWAP64LE(LEVIN_SIGNATURE); head.m_cb = 0; - head.m_have_to_return_data = true; + head.m_have_to_return_data = 1; head.m_command = SWAP32LE(command_id); head.m_return_code = SWAP32LE(1); head.m_reservedA = rand(); //probably some flags in future @@ -68,7 +68,7 @@ namespace levin levin::bucket_head& head = *(levin::bucket_head*)(&buff[0]); head.m_signature = SWAP64LE(LEVIN_SIGNATURE); head.m_cb = 0; - head.m_have_to_return_data = true; + head.m_have_to_return_data = 1; head.m_command = SWAP32LE(command_id); head.m_return_code = SWAP32LE(1); head.m_reservedA = rand(); //probably some flags in future |