Author: Armin Rigo <[email protected]>
Branch:
Changeset: r85557:85427fd0119b
Date: 2016-07-05 13:17 +0200
http://bitbucket.org/pypy/pypy/changeset/85427fd0119b/
Log: Fix
diff --git a/rpython/jit/metainterp/optimizeopt/intdiv.py
b/rpython/jit/metainterp/optimizeopt/intdiv.py
--- a/rpython/jit/metainterp/optimizeopt/intdiv.py
+++ b/rpython/jit/metainterp/optimizeopt/intdiv.py
@@ -25,7 +25,7 @@
# check: is 't * m' small enough to be < 2**(64+i), or not?
# note that we're really computing (2**(64+i)-1) // m, but the result
# is the same, because powers of two are not multiples of m.
- if unsigned_mul_high(t, m) < high_word_dividend:
+ if unsigned_mul_high(t, r_uint(m)) < high_word_dividend:
quotient = t # yes, small enough
# k = 2**(64+i) // m + 1
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit