From 39f6581418e6259023cb63d69d2447387cf8308a Mon Sep 17 00:00:00 2001 From: Mamy Ratsimbazafy Date: Wed, 25 Dec 2024 19:29:48 +0100 Subject: [PATCH] fix(debug): no need to convert to uint in debug anymore --- constantine/serialization/endians.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/constantine/serialization/endians.nim b/constantine/serialization/endians.nim index 0d251a47..19a77ee6 100644 --- a/constantine/serialization/endians.nim +++ b/constantine/serialization/endians.nim @@ -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 & ")"