summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-11 19:21:09 (GMT)
committerGuido van Rossum <guido@python.org>1997-01-11 19:21:09 (GMT)
commitafe3ebfa5ce97771b25122738c4153e3536fb8a0 (patch)
tree8e153173267c5ace53f854e988b2ec76c28a4314 /Lib
parentfe27a50847efcd1f93a8500fee0a6c7219da4493 (diff)
downloadcpython-afe3ebfa5ce97771b25122738c4153e3536fb8a0.zip
cpython-afe3ebfa5ce97771b25122738c4153e3536fb8a0.tar.gz
cpython-afe3ebfa5ce97771b25122738c4153e3536fb8a0.tar.bz2
Use newer struct, which handles unsigned long right
Diffstat (limited to 'Lib')
-rw-r--r--Lib/aifc.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index 2e4b19c..ea4f600 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -199,9 +199,7 @@ def _write_short(f, x):
f.write(struct.pack('>h', x))
def _write_long(f, x):
- if x >= 1L<<31:
- x = x - (1L<<32)
- f.write(struct.pack('>l', x))
+ f.write(struct.pack('>L', x))
def _write_string(f, s):
f.write(chr(len(s)))