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

This commit is contained in:
ZCHNO 2023-09-26 14:26:12 -07:00 committed by GitHub
parent 90d3b0fb18
commit 14f69bddc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ struct integer_subbyte
if (sign_mask_ & storage) {
return !(rhs.storage < storage);
} else {
return storage < rhs.storage;
return storage <= rhs.storage;
}
}

View File

@ -139,7 +139,7 @@ struct integer_subbyte {
return !(rhs.storage < storage);
}
}
return storage < rhs.storage;
return storage <= rhs.storage;
}
/// Less than