diff options
author | temporal <temporal@630680e5-0e50-0410-840e-4b1c322b438d> | 2008-07-27 18:38:54 +0000 |
---|---|---|
committer | temporal <temporal@630680e5-0e50-0410-840e-4b1c322b438d> | 2008-07-27 18:38:54 +0000 |
commit | 24856db0e9c6a8c5d0866fae1eee31a6fbc374b2 (patch) | |
tree | 913ed270b4dfe655862d0a0e91e5292316c11824 /python/google/protobuf/internal/wire_format.py | |
parent | 6fdb0964e3a9873d1eb08b28634c74bd082326ac (diff) |
Applied Ulrich Kunitz's patches to slightly optimize Python serialization code.
Diffstat (limited to 'python/google/protobuf/internal/wire_format.py')
-rwxr-xr-x | python/google/protobuf/internal/wire_format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/google/protobuf/internal/wire_format.py b/python/google/protobuf/internal/wire_format.py index 69aa4abf..ea219e27 100755 --- a/python/google/protobuf/internal/wire_format.py +++ b/python/google/protobuf/internal/wire_format.py @@ -87,7 +87,7 @@ def ZigZagEncode(value): """ if value >= 0: return value << 1 - return ((value << 1) ^ (~0)) | 0x1 + return (value << 1) ^ (~0) def ZigZagDecode(value): |