Fixed some compilation errors and warnings

This commit is contained in:
Alex Zolotarev 2011-03-25 03:12:44 +00:00 committed by Alex Zolotarev
parent 366113b0c2
commit bde6b27cd7
4 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ UNIT_TEST(BitShift)
uint32_t ui32 = 1;
TEST_EQUAL(0x80000000U, bits::ror(ui32, 1), ());
uint64_t ui64 = 1;
TEST_EQUAL(0x8000000000000000U, bits::ror(ui64, 1), ());
TEST_EQUAL(0x8000000000000000LL, bits::ror(ui64, 1), ());
uint16_t v = 0x58b1;
TEST_EQUAL(0x2b16, bits::ror(v, 3), ());

View file

@ -86,7 +86,7 @@ UNIT_TEST(FilesContainer_Shared)
FileWriter::DeleteFileX(fName);
uint32_t const count = 10;
int64_t const test64 = 908175281437210836;
int64_t const test64 = 908175281437210836LL;
{
// shared container fill

View file

@ -92,7 +92,7 @@ UNIT_TEST(VarIntMax)
TestVarUint(uint32_t(-1));
TestVarUint(uint64_t(-1));
TestVarInt(int32_t(2147483647));
TestVarInt(int32_t(-2147483648));
TestVarInt(int32_t(-2147483648LL));
TestVarInt(int64_t(9223372036854775807LL));
// TestVarInt(int64_t(-9223372036854775808LL));
}

View file

@ -37,7 +37,7 @@ namespace
}
}
UNIT_TEST(RandomRecode)
UNIT_TEST(CellId_RandomRecode)
{
PseudoRNG32 rng;
for (size_t i = 0; i < 1000; ++i)