Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r96557:346bab011f27
Date: 2019-04-29 11:16 +0200
http://bitbucket.org/pypy/pypy/changeset/346bab011f27/

Log:    Last fix for unichr_as_utf8, this one only shows up after
        translation on 32-bit

diff --git a/pypy/interpreter/unicodehelper.py 
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -1233,7 +1233,7 @@
                                   s, pos, pos + 4)
             result.append(r)
             continue
-        elif ch >= 0x110000:
+        elif r_uint(ch) >= 0x110000:
             r, pos = errorhandler(errors, public_encoding_name,
                                   "codepoint not in range(0x110000)",
                                   s, pos, len(s))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to