Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: 
Changeset: r96023:98772484a4cf
Date: 2019-02-16 10:18 +0100
http://bitbucket.org/pypy/pypy/changeset/98772484a4cf/

Log:    maybe fix translation

diff --git a/rpython/rlib/rutf8.py b/rpython/rlib/rutf8.py
--- a/rpython/rlib/rutf8.py
+++ b/rpython/rlib/rutf8.py
@@ -133,9 +133,11 @@
         return pos + 1
     if _is_64bit and not jit.we_are_jitted():
         # optimized for Intel x86-64 by hand
-        return pos + 1 + (
+        res = pos + 1 + (
             ((chr1 > 0xDF) << 1) +
             rarithmetic.intmask((_constant_ncp >> (chr1 & 0x3F)) & 1))
+        assert res >= 0
+        return res
     if chr1 <= 0xDF:
         return pos + 2
     if chr1 <= 0xEF:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to