summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-10-04 19:28:53 -0700
committerGabe Black <gabeblack@google.com>2017-10-05 09:15:27 +0000
commitdad2ed25ed5bc88683988ec898f31e2da0d071ed (patch)
treecee814c60873019cab874282dc462123aeade1b4 /util
parent000cda556c4264c0f931bda12ed41d200ac19b81 (diff)
downloadgem5-dad2ed25ed5bc88683988ec898f31e2da0d071ed.tar.xz
misc: Small style fix in _EncodeVarint32.
Added spaces around the '|' operator. Change-Id: I5cb82b98e7d2769605cde141f76a62a6e3c6570d Reviewed-on: https://gem5-review.googlesource.com/5002 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'util')
-rw-r--r--util/protolib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/protolib.py b/util/protolib.py
index 4f3f2c7e3..1e442f1d9 100644
--- a/util/protolib.py
+++ b/util/protolib.py
@@ -152,7 +152,7 @@ def _EncodeVarint32(out_file, value):
bits = value & 0x7f
value >>= 7
while value:
- out_file.write(struct.pack('<B', 0x80|bits))
+ out_file.write(struct.pack('<B', 0x80 | bits))
bits = value & 0x7f
value >>= 7
out_file.write(struct.pack('<B', bits))