diff options
| author | Matthew Parlane <parlane@gmail.com> | 2014-03-17 17:43:20 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2014-03-17 17:43:20 +1300 |
| commit | 6445e02d53a9951c845c2fed23d825109f9b6d79 (patch) | |
| tree | de14a92b7e7f144c328739eb5339ef9436d49dd0 /Source/UnitTests/Common/CommonFuncsTest.cpp | |
| parent | d3e9702cecc5b7f9078ef3448f7d513226ebeedd (diff) | |
| parent | 46becfc06b3a8b91d0500a8ee226c85b4450dddf (diff) | |
Merge pull request #159 from Tilka/misc
Cleanup stuff
Diffstat (limited to 'Source/UnitTests/Common/CommonFuncsTest.cpp')
| -rw-r--r-- | Source/UnitTests/Common/CommonFuncsTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/UnitTests/Common/CommonFuncsTest.cpp b/Source/UnitTests/Common/CommonFuncsTest.cpp index 81eb089e92..285b5f253e 100644 --- a/Source/UnitTests/Common/CommonFuncsTest.cpp +++ b/Source/UnitTests/Common/CommonFuncsTest.cpp @@ -11,8 +11,8 @@ TEST(CommonFuncs, ArraySizeMacro) char test[4]; u32 test2[42]; - EXPECT_EQ(4, ArraySize(test)); - EXPECT_EQ(42, ArraySize(test2)); + EXPECT_EQ(4u, ArraySize(test)); + EXPECT_EQ(42u, ArraySize(test2)); } TEST(CommonFuncs, RoundUpPow2Macro) @@ -41,6 +41,6 @@ TEST(CommonFuncs, Swap) { EXPECT_EQ(0xf0, Common::swap8(0xf0)); EXPECT_EQ(0x1234, Common::swap16(0x3412)); - EXPECT_EQ(0x12345678, Common::swap32(0x78563412)); + EXPECT_EQ(0x12345678u, Common::swap32(0x78563412)); EXPECT_EQ(0x123456789abcdef0ull, Common::swap64(0xf0debc9a78563412ull)); } |
