projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
879dfa0
)
Fix insignificant CRTP bug
author
Tudor Bosman
<tudorb@fb.com>
Thu, 29 Aug 2013 00:46:16 +0000
(17:46 -0700)
committer
Jordan DeLong
<jdelong@fb.com>
Sun, 8 Sep 2013 01:50:19 +0000
(18:50 -0700)
Summary:
@override-unit-failures
Flaky unit tests passed on the second try, but the git hook still
complains
Test Plan: iobuf_cursor_test
Reviewed By: philipp@fb.com
FB internal diff:
D948768
folly/io/Cursor.h
patch
|
blob
|
history
diff --git
a/folly/io/Cursor.h
b/folly/io/Cursor.h
index 48ba6baf127c12b5bc3c998e0898f22c312eeec8..73e37965713924dc905f23c67ef8bd0c8c1c8fa6 100644
(file)
--- a/
folly/io/Cursor.h
+++ b/
folly/io/Cursor.h
@@
-372,7
+372,7
@@
class Writable {
write(T value) {
const uint8_t* u8 = reinterpret_cast<const uint8_t*>(&value);
Derived* d = static_cast<Derived*>(this);
- push(u8, sizeof(T));
+
d->
push(u8, sizeof(T));
}
template <class T>