diff --git a/include/cute/numeric/integer_subbyte.hpp b/include/cute/numeric/integer_subbyte.hpp index c20f485b..b10b45d8 100644 --- a/include/cute/numeric/integer_subbyte.hpp +++ b/include/cute/numeric/integer_subbyte.hpp @@ -111,7 +111,7 @@ struct integer_subbyte if (sign_mask_ & storage) { return !(rhs.storage < storage); } else { - return storage < rhs.storage; + return storage <= rhs.storage; } } diff --git a/include/cutlass/integer_subbyte.h b/include/cutlass/integer_subbyte.h index 0d5eb7bb..4c8ea36a 100644 --- a/include/cutlass/integer_subbyte.h +++ b/include/cutlass/integer_subbyte.h @@ -139,7 +139,7 @@ struct integer_subbyte { return !(rhs.storage < storage); } } - return storage < rhs.storage; + return storage <= rhs.storage; } /// Less than