[pypy-commit] pypy win32-cleanup2: revert unintentional change
mattip
noreply at buildbot.pypy.org
Sun May 6 22:09:13 CEST 2012
Author: Matti Picus <matti.picus at gmail.com>
Branch: win32-cleanup2
Changeset: r54919:a01d4f624819
Date: 2012-05-06 23:08 +0300
http://bitbucket.org/pypy/pypy/changeset/a01d4f624819/
Log: revert unintentional change
diff --git a/pypy/rlib/runicode.py b/pypy/rlib/runicode.py
--- a/pypy/rlib/runicode.py
+++ b/pypy/rlib/runicode.py
@@ -505,8 +505,9 @@
pos = 0
if byteorder == 'native':
if size >= 4:
- bom = ((ord(s[iorder[3]]) << 24) | (ord(s[iorder[2]]) << 16) |
- (ord(s[iorder[1]]) << 8) | ord(s[iorder[0]]))
+ bom = intmask(
+ (ord(s[iorder[3]]) << 24) | (ord(s[iorder[2]]) << 16) |
+ (ord(s[iorder[1]]) << 8) | ord(s[iorder[0]]))
if BYTEORDER == 'little':
if bom == BOM32_DIRECT:
pos += 4
More information about the pypy-commit
mailing list