facebook/rocksdb — pull request #321 by eonnen (2014-09-29 21:55:06+00:00)
Title: Make test use a compatible type in the size checks.

Absent this cast on OSX, make check will fail with the following error:

./util/testharness.h:93:19: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare]
BINARY_OP(IsEq, ==)
~~~~~~~~~~~~~~~~^~~
./util/testharness.h:86:14: note: expanded from macro 'BINARY_OP'
if (! (x op y)) { \
^
db/db_test.cc:1352:3: note: in instantiation of function template specialization 'rocksdb::test::Tester::IsEq' requested here
ASSERT_EQ(status_list.size(), 6);
^
./util/testharness.h:113:68: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(a,b) ::rocksdb::test::Tester(__FILE__, __LINE__).IsEq((a),(b))
^
1 error generated.
make: *** [db/db_test.o] Error 1