From c436b28807f3ee0a896380899346cc103798b33d Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Fri, 15 Nov 2013 11:10:13 +0100 Subject: [PATCH] Fix warning on signed/unsigned comparison in GfxState.cc Fixes warning: CXX GfxState.lo GfxState.cc: In member function 'virtual void GfxICCBasedColorSpace::getGray(GfxColor*, GfxGray*)': GfxState.cc:2000:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] GfxState.cc: In member function 'virtual void GfxICCBasedColorSpace::getRGB(GfxColor*, GfxRGB*)': GfxState.cc:2047:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] GfxState.cc:2090:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] GfxState.cc: In member function 'virtual void GfxICCBasedColorSpace::getCMYK(GfxColor*, GfxCMYK*)': GfxState.cc:2295:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] --- poppler/GfxState.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc index 8a53ee4..68b4a37 100644 --- a/poppler/GfxState.cc +++ b/poppler/GfxState.cc @@ -25,6 +25,7 @@ // Copyright (C) 2011 Andrea Canciani // Copyright (C) 2012 William Bader // Copyright (C) 2013 Lu Wang +// Copyright (C) 2013 Hib Eris // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git @@ -156,7 +157,7 @@ static const char *gfxColorSpaceModeNames[] = { #ifdef USE_CMS -static const int CMSCACHE_LIMIT = 2048; +static const unsigned int CMSCACHE_LIMIT = 2048; #ifdef USE_LCMS1 #include -- 1.8.1.2