[fix] fix comparison operator for integer_subbyte (#1090)

This commit is contained in:
ZCHNO
2023-09-26 17:26:12 -04:00
committed by GitHub
parent 90d3b0fb18
commit 14f69bddc8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ struct integer_subbyte
if (sign_mask_ & storage) { if (sign_mask_ & storage) {
return !(rhs.storage < storage); return !(rhs.storage < storage);
} else { } else {
return storage < rhs.storage; return storage <= rhs.storage;
} }
} }
+1 -1
View File
@@ -139,7 +139,7 @@ struct integer_subbyte {
return !(rhs.storage < storage); return !(rhs.storage < storage);
} }
} }
return storage < rhs.storage; return storage <= rhs.storage;
} }
/// Less than /// Less than