소스 검색

Fix test failure on 64-bit python.

kenton@google.com 16 년 전
부모
커밋
3d694ad2d8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      python/google/protobuf/internal/decoder_test.py

+ 1 - 1
python/google/protobuf/internal/decoder_test.py

@@ -122,7 +122,7 @@ class DecoderTest(unittest.TestCase):
         ['fixed64', decoder.Decoder.ReadFixed64, 0xffffffffffffffff,
         'ReadLittleEndian64', 0xffffffffffffffff],
         ['sfixed32', decoder.Decoder.ReadSFixed32, long(-1),
-         'ReadLittleEndian32', 0xffffffff],
+         'ReadLittleEndian32', long(0xffffffff)],
         ['sfixed64', decoder.Decoder.ReadSFixed64, long(-1),
          'ReadLittleEndian64', 0xffffffffffffffff],
         ['float', decoder.Decoder.ReadFloat, 0.0,