fix breakage with Nim HEAD (#73)

This commit is contained in:
Ștefan Talpalaru 2019-01-08 12:39:04 +01:00 committed by Mamy Ratsimbazafy
parent 360d01d170
commit d002fbb155
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func div2n1n[T: SomeunsignedInt](q, r: var T, n_hi, n_lo, d: T) =
var (q, r) = divmod(n_hi, d_hi) var (q, r) = divmod(n_hi, d_hi)
let m = q * d_lo let m = q * d_lo
var r = (r shl halfSize) or n_lo r = (r shl halfSize) or n_lo
# Fix the reminder, we're at most 2 iterations off # Fix the reminder, we're at most 2 iterations off
if r < m: if r < m: