Skip to content

Commit

Permalink
Update src/nimony/xints.nim
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Rumpf <[email protected]>
  • Loading branch information
ringabout and Araq authored Jan 8, 2025
1 parent 10cee62 commit dc681bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimony/xints.nim
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ proc `$`*(a: xint): string =

proc createXint*(x: int64): xint =
if x == low(int64):
xint(neg: true, val: cast[uint64](x))
xint(neg: true, val: uint64(high(int64)) + 1'u64)
elif x < 0:
xint(neg: true, val: uint64(-x))
else:
Expand Down

0 comments on commit dc681bf

Please sign in to comment.