fix vlib/math/math_test.v

pull/4237/head
Delyan Angelov 2020-04-04 16:07:42 +03:00
parent f748390172
commit 4c8703416e
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}