Commit 792c0340 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 7

Don't assume unsigned long is 64-bit

Summary: Because it isn't. Not on MSVC anyways.

Reviewed By: yfeldblum

Differential Revision: D3767326

fbshipit-source-id: 0f9421773819999f99be38ae0646ae3e81bde4e4
parent aad1a0c5
......@@ -634,7 +634,7 @@ TEST(small_vector, Basic) {
}
TEST(small_vector, Capacity) {
folly::small_vector<unsigned long, 1> vec;
folly::small_vector<uint64_t, 1> vec;
EXPECT_EQ(vec.size(), 0);
EXPECT_EQ(vec.capacity(), 1);
......@@ -646,8 +646,7 @@ TEST(small_vector, Capacity) {
EXPECT_EQ(vec.size(), 2);
EXPECT_GT(vec.capacity(), 1);
folly::small_vector<unsigned long, 2> vec2;
folly::small_vector<uint64_t, 2> vec2;
EXPECT_EQ(vec2.size(), 0);
EXPECT_EQ(vec2.capacity(), 2);
......
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