From: Jordan DeLong Date: Sun, 28 Apr 2013 16:27:03 +0000 (-0700) Subject: Fix build for folly_fb_platform X-Git-Tag: v0.22.0~991 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d6e5191558bf975609761af76a173fa3e197eee3;p=folly.git 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 --- 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); }