Skip to content

Commit

Permalink
Update frametest.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer authored Nov 14, 2024
1 parent f55d33b commit b9d22e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/frametest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TEST_F(FrameTest, DoubleValues) {
if (std::numeric_limits<double>::is_iec559) {
double inf = util_double_infinity();
// IEC 559 (IEEE 754) Infinity
EXPECT_EQ(*reinterpret_cast<long long*>(inf), 0x7FF0000000000000);
EXPECT_EQ(*reinterpret_cast<long long*>(&inf), 0x7FF0000000000000);

Check failure on line 15 in src/test/frametest.cpp

View workflow job for this annotation

GitHub Actions / Ubuntu 22.04 (gcc)

dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]

Check failure on line 15 in src/test/frametest.cpp

View workflow job for this annotation

GitHub Actions / Ubuntu 22.04 (Qt 6.2, gcc)

dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
}
}

Expand Down

0 comments on commit b9d22e1

Please sign in to comment.