[babl] palette: use INT_MAX instead of MAXINT
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] palette: use INT_MAX instead of MAXINT
- Date: Mon, 26 Mar 2012 14:29:20 +0000 (UTC)
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]