diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-06 10:37:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-06 10:37:17 +0200 |
commit | 39295e50d6523cb00ac3f598d18c1e9bbdf42dcd (patch) | |
tree | 9cddd2ee6edde4616d1649e8b6a1aa2e083bb45b | |
parent | 55f9037b44ce30162eace48c5b16078c386e8ee3 (diff) |
src/ps: don't microoptimize signed division
-rw-r--r-- | src/path-search.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path-search.cpp b/src/path-search.cpp index 26759bd0..365791de 100644 --- a/src/path-search.cpp +++ b/src/path-search.cpp @@ -55,7 +55,7 @@ constexpr Pair<Vector2i, Vector2i> get_value(Vector2i sz, Vector2ub div, rotatio return {min_E, max_E}; } case (uint8_t)rotation_COUNT: { - auto min_C = Vector2i(-(sz.x() >> 1), -(sz.y() >> 1) ); + auto min_C = Vector2i(-sz.x()/2, -sz.y()/2 ); auto max_C = min_C + sz; return {min_C, max_C}; } |