diff --git a/aead/xchacha20poly1305_ietf/xchacha20poly1305_ietf.v b/aead/xchacha20poly1305_ietf/xchacha20poly1305_ietf.v index 0745afb..6ebb321 100644 --- a/aead/xchacha20poly1305_ietf/xchacha20poly1305_ietf.v +++ b/aead/xchacha20poly1305_ietf/xchacha20poly1305_ietf.v @@ -69,7 +69,7 @@ fn get_crypto_box_messagebytes_max_as_int() !int { } messagebytes_max := if messagebytes_max_raw > u64(math.max_i32) { - math.max_i32 + int(math.max_i32) } else { int(messagebytes_max_raw) } diff --git a/secretbox/secretbox.v b/secretbox/secretbox.v index 255685d..da18343 100644 --- a/secretbox/secretbox.v +++ b/secretbox/secretbox.v @@ -66,7 +66,7 @@ fn get_crypto_box_messagebytes_max_as_int() !int { } messagebytes_max := if messagebytes_max_raw > u64(math.max_i32) { - math.max_i32 + int(math.max_i32) } else { int(messagebytes_max_raw) }