strconv: remove an assert for now

pull/4195/head
Alexander Medvednikov 2020-04-02 14:26:35 +02:00
parent 5b53b3d7e3
commit be327962d3
1 changed files with 11 additions and 10 deletions

View File

@ -96,7 +96,8 @@ fn decimal_len_32(u u32) int {
} }
fn mul_shift_32(m u32, mul u64, ishift int) u32 { fn mul_shift_32(m u32, mul u64, ishift int) u32 {
assert ishift > 32 // QTODO
//assert ishift > 32
hi, lo := bits.mul_64(u64(m), mul) hi, lo := bits.mul_64(u64(m), mul)
shifted_sum := (lo >> u64(ishift)) + (hi << u64(64-ishift)) shifted_sum := (lo >> u64(ishift)) + (hi << u64(64-ishift))