From d6e5191558bf975609761af76a173fa3e197eee3 Mon Sep 17 00:00:00 2001 From: Jordan DeLong Date: Sun, 28 Apr 2013 09:27:03 -0700 Subject: [PATCH] Fix build for folly_fb_platform Summary: This wasn't building with an error from a warning about narrowing conversions---probably we didn't notice because it was previously broken due to folly docs being broken forever. Folly tests should always pass. (I want to add it to the fbcode-tests-must-pass commit hook.) Test Plan: fbmake runtests_opt in this platform, except with stl_tests turned off because it takes years to compile. Reviewed By: andrewjcg@fb.com FB internal diff: D792059 --- folly/experimental/io/test/AsyncIOTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/experimental/io/test/AsyncIOTest.cpp b/folly/experimental/io/test/AsyncIOTest.cpp index de00065a..cdd9d283 100644 --- a/folly/experimental/io/test/AsyncIOTest.cpp +++ b/folly/experimental/io/test/AsyncIOTest.cpp @@ -321,7 +321,7 @@ TEST(AsyncIO, ManyAsyncDataNotPollable) { { std::vector v; for (int i = 0; i < 1000; i++) { - v.push_back({kAlign * i, kAlign}); + v.push_back({off_t(kAlign * i), kAlign}); } testReads(v, AsyncIO::NOT_POLLABLE); } @@ -331,7 +331,7 @@ TEST(AsyncIO, ManyAsyncDataPollable) { { std::vector v; for (int i = 0; i < 1000; i++) { - v.push_back({kAlign * i, kAlign}); + v.push_back({off_t(kAlign * i), kAlign}); } testReads(v, AsyncIO::POLLABLE); } -- 2.34.1