Skip to content

Commit

Permalink
fix(debug): no need to convert to uint in debug anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Dec 25, 2024
1 parent 7124ffd commit 39f6581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constantine/serialization/endians.nim
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func dumpRawInt*(
## - an array of words traversed from 0 ..< len (little-endian), via an incremented `cursor`
## - with each word being of `endian` ordering for deserialization purpose.
debug:
doAssert 0 <= cursor and cursor < dst.len.uint
doAssert cursor + sizeof(src).uint <= dst.len.uint,
doAssert 0 <= cursor and cursor < dst.len
doAssert cursor + sizeof(src) <= dst.len,
"cursor (" & $cursor & ") + sizeof(src) (" & $sizeof(src) &
") <= dst.len (" & $dst.len & ")"

Expand Down

0 comments on commit 39f6581

Please sign in to comment.