From a10c08ba1d06b0bfd13478d44faa6723075e14ac Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 10 Feb 2023 16:16:47 -0800 Subject: [PATCH] swap variables These are the wrong way around. MSVC warns with /W4. Signed-off-by: Rosen Penev --- src/crwimage_int.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crwimage_int.cpp b/src/crwimage_int.cpp index 923cd2c4..08b54eeb 100644 --- a/src/crwimage_int.cpp +++ b/src/crwimage_int.cpp @@ -37,7 +37,7 @@ constexpr RotationMap::OmList RotationMap::omList_[] = { uint16_t RotationMap::orientation(int32_t degrees) { uint16_t o = 1; - for (auto&& [deg, orient] : omList_) { + for (auto&& [orient, deg] : omList_) { if (deg == degrees) { o = orient; break; @@ -48,7 +48,7 @@ uint16_t RotationMap::orientation(int32_t degrees) { int32_t RotationMap::degrees(uint16_t orientation) { int32_t d = 0; - for (auto&& [deg, orient] : omList_) { + for (auto&& [orient, deg] : omList_) { if (orient == orientation) { d = deg; break;