[pypy-commit] pypy default: Fix
arigo
pypy.commits at gmail.com
Tue Jul 5 07:16:01 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
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
More information about the pypy-commit
mailing list