diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-09-02 07:40:49 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-09-02 07:40:49 +0200 |
| commit | 5941653d474ba27ed40250028e03425cb5c2be5f (patch) | |
| tree | 51538037d9cd4f0ac6d7d096cd940c97756b64a3 /Source/UnitTests/Common/BitFieldTest.cpp | |
| parent | 9b10d36a85bb27681f5d48e3ced9c142a1ac6b47 (diff) | |
| parent | 839cace5ff15b56afa3a72c86b379c6abc4c0bf6 (diff) | |
Merge pull request #920 from shuffle2/msvc-gtest
Provide a way to build and run unittests on Windows
Diffstat (limited to 'Source/UnitTests/Common/BitFieldTest.cpp')
| -rw-r--r-- | Source/UnitTests/Common/BitFieldTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/UnitTests/Common/BitFieldTest.cpp b/Source/UnitTests/Common/BitFieldTest.cpp index aa98352272..ff317649e6 100644 --- a/Source/UnitTests/Common/BitFieldTest.cpp +++ b/Source/UnitTests/Common/BitFieldTest.cpp @@ -139,7 +139,8 @@ TEST(BitField, Alignment) GC_ALIGNED16(OddlyAlignedTestStruct test_struct); TestUnion& object = test_struct.obj; - static_assert(alignof(test_struct.obj.signed_1bit) == 1, "Incorrect variable alignment"); + static_assert(alignof(decltype(test_struct.obj.signed_1bit)) == 1, + "Incorrect variable alignment"); for (u64 val : table) { |
