From 4c8703416e693fa9773ab6a093b5a9ed3bb040ca Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 4 Apr 2020 16:07:42 +0300 Subject: [PATCH] fix vlib/math/math_test.v --- vlib/strconv/ftoa/utilities.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/strconv/ftoa/utilities.v b/vlib/strconv/ftoa/utilities.v index 46c8ee7f73..7644d77f17 100644 --- a/vlib/strconv/ftoa/utilities.v +++ b/vlib/strconv/ftoa/utilities.v @@ -18,7 +18,7 @@ * **********************************************************************/ module ftoa -import math +//import math import math.bits /****************************************************************************** @@ -101,7 +101,7 @@ fn mul_shift_32(m u32, mul u64, ishift int) u32 { hi, lo := bits.mul_64(u64(m), mul) shifted_sum := (lo >> u64(ishift)) + (hi << u64(64-ishift)) - assert1(shifted_sum <= math.max_u32, "shiftedSum <= math.max_u32") + assert1(shifted_sum <= 2147483647, "shiftedSum <= math.max_u32") return u32(shifted_sum) }