diff --git a/include/fc/io/varint.hpp b/include/fc/io/varint.hpp index f3c49ad..ddc1c73 100644 --- a/include/fc/io/varint.hpp +++ b/include/fc/io/varint.hpp @@ -21,6 +21,10 @@ struct unsigned_int { friend bool operator==( const unsigned_int& i, const uint32_t& v ) { return v == i.value; } friend bool operator!=( const unsigned_int& i, const uint32_t& v ) { return v != i.value; } + friend bool operator<( const unsigned_int& i, const uint32_t& v ) { return v < i.value; } + friend bool operator>=( const unsigned_int& i, const uint32_t& v ) { return v >= i.value; } + friend bool operator<( const unsigned_int& i, const unsigned_int& v ) { return v < i.value; } + friend bool operator>=( const unsigned_int& i, const unsigned_int& v ) { return v >= i.value; } }; struct signed_int {