projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8278619
)
Fix narrowing warning (if enabled).
author
Tudor Bosman
<tudorb@fb.com>
Wed, 13 Jun 2012 00:37:21 +0000
(17:37 -0700)
committer
Tudor Bosman
<tudorb@fb.com>
Wed, 13 Jun 2012 00:45:41 +0000
(17:45 -0700)
Summary: They're (signed) long long.
Test Plan: built, folly/test
Reviewed By: andrewjcg@fb.com
FB internal diff:
D493270
folly/build/generate_varint_tables.py
patch
|
blob
|
history
diff --git
a/folly/build/generate_varint_tables.py
b/folly/build/generate_varint_tables.py
index f677f4d6642e205751fd31ac1adcb549d48d5896..6bd88a0c0abf9c5613b771476be101b4a39907eb 100755
(executable)
--- a/
folly/build/generate_varint_tables.py
+++ b/
folly/build/generate_varint_tables.py
@@
-73,7
+73,7
@@
def generate(f):
# 0xff: set corresponding byte in result to 0
for k in range(d, 4):
vals[j] |= 0xff << (8 * k)
- f.write(" {{0x{1:08x}{0:08x}
U, 0x{3:08x}{2:08x}U
}},\n".format(*vals))
+ f.write(" {{0x{1:08x}{0:08x}
LL, 0x{3:08x}{2:08x}LL
}},\n".format(*vals))
f.write("};\n"
"\n"