mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
Fix missing < 0 on memcmp
This commit is contained in:
parent
6130c1b976
commit
def5326949
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ namespace crypto { \
|
|||
return !operator==(_v1, _v2); \
|
||||
} \
|
||||
inline bool operator<(const type &_v1, const type &_v2) { \
|
||||
return memcmp(&_v1, &_v2, sizeof(_v1)); \
|
||||
return memcmp(&_v1, &_v2, sizeof(_v1)) < 0; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue