summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/BitFieldTest.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2014-04-19 18:31:35 +0200
committerTillmann Karras <tilkax@gmail.com>2014-04-19 18:31:35 +0200
commitc9405b2030fec81e7edef6f5d3f3c2e2a338bf4d (patch)
tree546509b38d2d31257d67fe72dcb6f968be7e5b5c /Source/UnitTests/Common/BitFieldTest.cpp
parent79df318a760cd064f816436b1e18885825e3b4a2 (diff)
BitFieldTest: fix warnings
Diffstat (limited to 'Source/UnitTests/Common/BitFieldTest.cpp')
-rw-r--r--Source/UnitTests/Common/BitFieldTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/UnitTests/Common/BitFieldTest.cpp b/Source/UnitTests/Common/BitFieldTest.cpp
index 800bb84360..a97fd3bb82 100644
--- a/Source/UnitTests/Common/BitFieldTest.cpp
+++ b/Source/UnitTests/Common/BitFieldTest.cpp
@@ -106,7 +106,7 @@ TEST(BitField, Assignment)
EXPECT_EQ(val, object.full_u64);
object.full_s64 = (s64)val;
- EXPECT_EQ((s64)val, object.full_u64);
+ EXPECT_EQ(val, object.full_u64);
object.regular_field_unsigned = val;
EXPECT_EQ(val & 0x7, object.regular_field_unsigned);
@@ -121,8 +121,8 @@ TEST(BitField, Assignment)
EXPECT_EQ(((s64)(object.hex << 61)) >> 61, object.regular_field_signed);
// Assignment from other BitField
- object.at_dword_boundary = object.regular_field_unsigned;
- EXPECT_EQ(object.regular_field_unsigned, object.at_dword_boundary);
+ object.at_dword_boundary = object.regular_field_signed;
+ EXPECT_EQ(object.regular_field_signed, object.at_dword_boundary);
}
}
@@ -148,7 +148,7 @@ TEST(BitField, Alignment)
EXPECT_EQ(val, object.full_u64);
object.full_s64 = (s64)val;
- EXPECT_EQ((s64)val, object.full_u64);
+ EXPECT_EQ(val, object.full_u64);
object.regular_field_unsigned = val;
EXPECT_EQ(val & 0x7, object.regular_field_unsigned);
@@ -163,7 +163,7 @@ TEST(BitField, Alignment)
EXPECT_EQ(((s64)(object.hex << 61)) >> 61, object.regular_field_signed);
// Assignment from other BitField
- object.at_dword_boundary = object.regular_field_unsigned;
- EXPECT_EQ(object.regular_field_unsigned, object.at_dword_boundary);
+ object.at_dword_boundary = object.regular_field_signed;
+ EXPECT_EQ(object.regular_field_signed, object.at_dword_boundary);
}
}