diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-18 01:45:19 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-19 14:32:18 +0100 |
commit | 151e6911a8aa56749edbbf0c15ab04752d96c2f3 (patch) | |
tree | 06fcf3d6551d1945b5717458aa09222c947ede04 /test | |
parent | e77dc91b5d3e6a5181776a81cee2c3164c7b3cc9 (diff) |
ccc
Diffstat (limited to 'test')
-rw-r--r-- | test/math.cpp | 6 | ||||
-rw-r--r-- | test/path-search.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/math.cpp b/test/math.cpp index 6535e998..9befad18 100644 --- a/test/math.cpp +++ b/test/math.cpp @@ -20,9 +20,9 @@ bool test_sqrt() constexpr auto eps = F(1e-11); constexpr auto test = [](double x) { - auto x_ = (F)x; - auto y1 = Math::sqrt(x_); - auto y2 = std::sqrt(x_); + auto xʹ = (F)x; + auto y1 = Math::sqrt(xʹ); + auto y2 = std::sqrt(xʹ); return Math::abs(y1 - y2) < eps; }; diff --git a/test/path-search.cpp b/test/path-search.cpp index 069960c1..e3c11e28 100644 --- a/test/path-search.cpp +++ b/test/path-search.cpp @@ -20,10 +20,10 @@ constexpr bbox<int> get_value(Vector2i sz, Vector2ui div, rotation r) { const int offset_W = iTILE_SIZE2.x()/(int)div.x(), offset_N = iTILE_SIZE2.y()/(int)div.y(); - const auto r_ = (uint8_t)r; - CORRADE_ASSUME(r_ <= (uint8_t)rotation_COUNT); + const auto rʹ = (uint8_t)r; + CORRADE_ASSUME(rʹ <= (uint8_t)rotation_COUNT); - switch (r_) + switch (rʹ) { case (uint8_t)rotation::N: { auto min_N = Vector2i(-sz.x()/2, -offset_N - sz.y()/2 ); |