1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fix vlib/math/math_test.v

This commit is contained in:
Delyan Angelov 2020-04-04 16:07:42 +03:00
parent f748390172
commit 4c8703416e

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