[babl] palette: use INT_MAX instead of MAXINT



commit 56e8871e416659463ecd48c954e735a35fa84b92
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Mon Mar 26 15:29:12 2012 +0100

    palette: use INT_MAX instead of MAXINT

 babl/babl-palette.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-palette.c b/babl/babl-palette.c
index 8639ba9..893bc6a 100644
--- a/babl/babl-palette.c
+++ b/babl/babl-palette.c
@@ -90,7 +90,7 @@ babl_palette_lookup (BablPalette *pal, int r, int g, int b, int a)
   else
     {
       int best_idx = 0;
-      int best_diff = MAXINT;
+      int best_diff = INT_MAX;
 
       for (idx = 0; idx < pal->count; idx++)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]