diff -Nru csspp-1.0.32.0~lunar/debian/changelog csspp-1.0.32.1~lunar/debian/changelog --- csspp-1.0.32.0~lunar/debian/changelog 2023-11-11 18:34:40.000000000 +0000 +++ csspp-1.0.32.1~lunar/debian/changelog 2023-11-11 19:52:08.000000000 +0000 @@ -1,4 +1,10 @@ -csspp (1.0.32.0~lunar) lunar; urgency=high +csspp (1.0.32.1~lunar) lunar; urgency=high + + * Changed test to use unsigned int where the abs() gets used. + + -- Alexis Wilke Sat, 11 Nov 2023 11:52:08 -0800 + +csspp (1.0.32.0~jammy) jammy; urgency=high * Renamed exceptions.h without the 's': exception.h. * Added pragma -Wrestrict to compile on Lunar. Binary files /tmp/tmpo7fllvwp/ze5RAUVelz/csspp-1.0.32.0~lunar/debian/.changelog.swp and /tmp/tmpo7fllvwp/7ZjbpmsKh7/csspp-1.0.32.1~lunar/debian/.changelog.swp differ diff -Nru csspp-1.0.32.0~lunar/tests/catch_nth_child.cpp csspp-1.0.32.1~lunar/tests/catch_nth_child.cpp --- csspp-1.0.32.0~lunar/tests/catch_nth_child.cpp 2023-11-08 06:31:25.000000000 +0000 +++ csspp-1.0.32.1~lunar/tests/catch_nth_child.cpp 2023-11-11 19:47:21.000000000 +0000 @@ -153,22 +153,24 @@ // try all combos with spaces for(int k(0); k < (1 << 6); ++k) { -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-overflow" +//#pragma GCC diagnostic push +//#pragma GCC diagnostic ignored "-Wstrict-overflow" + unsigned int const i_abs(abs(i)); + unsigned int const j_abs(abs(j)); a.parse( std::string((k & (1 << 0)) ? " " : "") + (i >= 0 ? (rand() % 5 == 0 ? "+" : "") : "-") + ((k & (1 << 1)) ? " " : "") - + std::to_string(abs(i)) + + std::to_string(i_abs) + ((k & (1 << 2)) ? " " : "") // this one should be illegal, we may enforce it later + "n" + ((k & (1 << 3)) ? " " : "") + (j >= 0 ? "+" : "-") + ((k & (1 << 4)) ? " " : "") - + std::to_string(abs(j)) + + std::to_string(j_abs) + ((k & (1 << 5)) ? " " : "") ); -#pragma GCC diagnostic pop +//#pragma GCC diagnostic pop CATCH_REQUIRE(a.get_a() == i); CATCH_REQUIRE(a.get_b() == j); @@ -181,16 +183,17 @@ { for(int k(0); k < (1 << 3); ++k) { -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-overflow" +//#pragma GCC diagnostic push +//#pragma GCC diagnostic ignored "-Wstrict-overflow" + unsigned int const j_abs(abs(j)); a.parse( std::string((k & (1 << 0)) ? " " : "") + (j >= 0 ? (rand() % 5 <= 2 ? "+" : "") : "-") + ((k & (1 << 1)) ? " " : "") - + std::to_string(abs(j)) + + std::to_string(j_abs) + ((k & (1 << 2)) ? " " : "") ); -#pragma GCC diagnostic pop +//#pragma GCC diagnostic pop CATCH_REQUIRE(a.get_a() == i); CATCH_REQUIRE(a.get_b() == j); Binary files /tmp/tmpo7fllvwp/ze5RAUVelz/csspp-1.0.32.0~lunar/tests/.catch_nth_child.cpp.swp and /tmp/tmpo7fllvwp/7ZjbpmsKh7/csspp-1.0.32.1~lunar/tests/.catch_nth_child.cpp.swp differ