From 506d193f12f9a6454478638a1da15768cbf6d5c0 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Tue, 26 Nov 2024 19:15:20 -0500 Subject: [PATCH] Fix does not need fabs --- src/gfx/pal_packing.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gfx/pal_packing.cpp b/src/gfx/pal_packing.cpp index d009a58f0..969b46401 100644 --- a/src/gfx/pal_packing.cpp +++ b/src/gfx/pal_packing.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include #include @@ -486,8 +485,7 @@ std::tuple, size_t> maxSize, maxRelSize ); - if (fabs(minSize * maxRelSize - maxSize * minRelSize) - < fabs(minRelSize * maxRelSize) * .001) { + if (maxSize * minRelSize - minSize * maxRelSize < minRelSize * maxRelSize * .001) { options.verbosePrint( Options::VERB_TRACE, " All efficiencies are identical\n" @@ -535,7 +533,7 @@ std::tuple, size_t> if (iter == assignments.end()) { // No such page, create a new one options.verbosePrint( Options::VERB_DEBUG, - "Adding new palette (%zu) for overflowing proto-pal %zu\n", + "Adding new palette (%zu) for overflowing proto-palette %zu\n", assignments.size(), attrs.protoPalIndex );