From 39295e50d6523cb00ac3f598d18c1e9bbdf42dcd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 6 Oct 2023 10:37:17 +0200 Subject: src/ps: don't microoptimize signed division --- src/path-search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 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}; } -- cgit v1.2.3