projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support folly::getCurrentThreadID() without PThread
[folly.git]
/
folly
/
Varint.h
diff --git
a/folly/Varint.h
b/folly/Varint.h
index 6cb42d1fa9d2f84308a92547fc483a255f676ca0..4664cb95d4f5c4e2aa33efdb95f3398199ff1b53 100644
(file)
--- a/
folly/Varint.h
+++ b/
folly/Varint.h
@@
-88,7
+88,7
@@
inline size_t encodeVarint(uint64_t val, uint8_t* buf) {
val >>= 7;
}
*p++ = uint8_t(val);
- return
p - buf
;
+ return
size_t(p - buf)
;
}
template <class T>