Skip to content

Commit

Permalink
Update stdlib/src/builtin/uint.mojo
Browse files Browse the repository at this point in the history
Co-authored-by: soraros <soraros@users.noreply.github.com>
Signed-off-by: martinvuyk <110240700+martinvuyk@users.noreply.github.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
  • Loading branch information
martinvuyk and soraros committed Oct 13, 2024
1 parent bcb49a7 commit 84a30e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/src/builtin/uint.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ struct UInt(IntLike, _HashableWithHasher):
Returns:
The ~self value.
"""
return self ^ -1
return self ^ Self.MAX

# ===----------------------------------------------------------------------===#
# In place operations.
Expand Down

0 comments on commit 84a30e9

Please sign in to comment.