Fix missing < 0 on memcmp

This commit is contained in:
Jason Rhinelander 2019-06-26 22:33:46 -03:00
parent 6130c1b976
commit def5326949

View file

@ -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; \
} \
}