Kaydet (Commit) 820819c7 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix wanrings about unsigned hex constants.

üst 12034037
...@@ -142,7 +142,7 @@ __all__ = ["Error","open","openfp"] ...@@ -142,7 +142,7 @@ __all__ = ["Error","open","openfp"]
class Error(Exception): class Error(Exception):
pass pass
_AIFC_version = 0xA2805140 # Version 1 of AIFF-C _AIFC_version = 0xA2805140L # Version 1 of AIFF-C
_skiplist = 'COMT', 'INST', 'MIDI', 'AESD', \ _skiplist = 'COMT', 'INST', 'MIDI', 'AESD', \
'APPL', 'NAME', 'AUTH', '(c) ', 'ANNO' 'APPL', 'NAME', 'AUTH', '(c) ', 'ANNO'
...@@ -309,7 +309,7 @@ class Aifc_read: ...@@ -309,7 +309,7 @@ class Aifc_read:
dummy = chunk.read(8) dummy = chunk.read(8)
self._ssnd_seek_needed = 0 self._ssnd_seek_needed = 0
elif chunkname == 'FVER': elif chunkname == 'FVER':
self._version = _read_long(chunk) self._version = _read_ulong(chunk)
elif chunkname == 'MARK': elif chunkname == 'MARK':
self._readmark(chunk) self._readmark(chunk)
elif chunkname in _skiplist: elif chunkname in _skiplist:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment