Commit e16c0109 authored by Tudor Bosman's avatar Tudor Bosman Committed by Jordan DeLong

Fix insignificant CRTP bug

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
parent 879dfa05
...@@ -372,7 +372,7 @@ class Writable { ...@@ -372,7 +372,7 @@ class Writable {
write(T value) { write(T value) {
const uint8_t* u8 = reinterpret_cast<const uint8_t*>(&value); const uint8_t* u8 = reinterpret_cast<const uint8_t*>(&value);
Derived* d = static_cast<Derived*>(this); Derived* d = static_cast<Derived*>(this);
push(u8, sizeof(T)); d->push(u8, sizeof(T));
} }
template <class T> template <class T>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment