From 3de71bc8779aa0f67da400d3c9ae69553edc79ba Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Mon, 12 Nov 2001 20:19:07 +0000 Subject: [PATCH] added parentheses (corrects smart preprocessor error under Mac OS X) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/quantize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/quantize.cpp b/src/common/quantize.cpp index 47ca3a956d..6b702ebf5e 100644 --- a/src/common/quantize.cpp +++ b/src/common/quantize.cpp @@ -549,7 +549,7 @@ median_cut (j_decompress_ptr cinfo, boxptr boxlist, int numboxes, /* Select box to split. * Current algorithm: by population for first half, then by volume. */ - if (numboxes*2 <= desired_colors) { + if ((numboxes*2) <= desired_colors) { b1 = find_biggest_color_pop(boxlist, numboxes); } else { b1 = find_biggest_volume(boxlist, numboxes); -- 2.47.2