Skip to content

Commit

Permalink
[fix] fix comparison operator for integer_subbyte (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnowingNothing authored and ttl10101 committed Feb 7, 2024
1 parent 968dc6a commit 8c600c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/cute/numeric/integer_subbyte.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ struct integer_subbyte
if (sign_mask_ & storage) {
return !(rhs.storage < storage);
} else {
return storage < rhs.storage;
return storage <= rhs.storage;
}
}

Expand Down
2 changes: 1 addition & 1 deletion include/cutlass/integer_subbyte.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct integer_subbyte {
return !(rhs.storage < storage);
}
}
return storage < rhs.storage;
return storage <= rhs.storage;
}

/// Less than
Expand Down

0 comments on commit 8c600c6

Please sign in to comment.