From e16c010990428ff88734ed3d5bf758b062f244f3 Mon Sep 17 00:00:00 2001 From: Tudor Bosman Date: Wed, 28 Aug 2013 17:46:16 -0700 Subject: [PATCH] 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 --- folly/io/Cursor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/io/Cursor.h b/folly/io/Cursor.h index 48ba6baf..73e37965 100644 --- 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(&value); Derived* d = static_cast(this); - push(u8, sizeof(T)); + d->push(u8, sizeof(T)); } template -- 2.34.1