Commit d6e51915 authored by Jordan DeLong's avatar Jordan DeLong Committed by Sara Golemon

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
parent 51771873
...@@ -321,7 +321,7 @@ TEST(AsyncIO, ManyAsyncDataNotPollable) { ...@@ -321,7 +321,7 @@ TEST(AsyncIO, ManyAsyncDataNotPollable) {
{ {
std::vector<TestSpec> v; std::vector<TestSpec> v;
for (int i = 0; i < 1000; i++) { 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); testReads(v, AsyncIO::NOT_POLLABLE);
} }
...@@ -331,7 +331,7 @@ TEST(AsyncIO, ManyAsyncDataPollable) { ...@@ -331,7 +331,7 @@ TEST(AsyncIO, ManyAsyncDataPollable) {
{ {
std::vector<TestSpec> v; std::vector<TestSpec> v;
for (int i = 0; i < 1000; i++) { 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); testReads(v, AsyncIO::POLLABLE);
} }
......
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