projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make most implicit integer truncations and sign conversions explicit
[folly.git]
/
folly
/
experimental
/
BitVectorCoding.h
diff --git
a/folly/experimental/BitVectorCoding.h
b/folly/experimental/BitVectorCoding.h
index 7c96338889fcbef7e15e6d5e11ef68386a458e69..e2290fcd3d8f35dd25f79c998c09018c87febc4c 100644
(file)
--- a/
folly/experimental/BitVectorCoding.h
+++ b/
folly/experimental/BitVectorCoding.h
@@
-94,7
+94,7
@@
struct BitVectorEncoder {
if (begin == end) {
return MutableCompressedList();
}
- BitVectorEncoder encoder(
end - begin
, *(end - 1));
+ BitVectorEncoder encoder(
size_t(end - begin)
, *(end - 1));
for (; begin != end; ++begin) {
encoder.add(*begin);
}