poppler/GfxFont.cc |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 86cfe8ab2b4e0b600f3f6682701c2fcfbe5d0ca9
Author: Hib Eris <[email protected]>
Date:   Sun Dec 21 23:08:56 2008 +0100

    Fix compile warnings on signed/unsigned comparison

diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index 9ae54e6..11b8fc3 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -19,6 +19,7 @@
 // Copyright (C) 2007 Ed Catmur <[email protected]>
 // Copyright (C) 2008 Jonathan Kew <[email protected]>
 // Copyright (C) 2008 Ed Avis <[email protected]>
+// Copyright (C) 2008 Hib Eris <[email protected]>
 //
 // 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
@@ -838,7 +839,7 @@ Gfx8BitFont::Gfx8BitFont(XRef *xref, char *tagA, Ref idA, 
GooString *nameA,
          // if the 'mapUnknownCharNames' flag is set, do a simple pass-through
          // mapping for unknown character names
          if (charName && charName[0]) {
-           for (n = 0; n < sizeof(uBuf)/sizeof(*uBuf); ++n)
+           for (n = 0; n < (int)(sizeof(uBuf)/sizeof(*uBuf)); ++n)
              if (!(uBuf[n] = charName[n]))
                break;
            ctu->setMapping((CharCode)code, uBuf, n);
@@ -1057,7 +1058,8 @@ static int parseCharName(char *charName, Unicode *uBuf, 
int uLen,
     // restrictions mean that the "uni" prefix can be used only with Unicode
     // values from the Basic Multilingual Plane (BMP).
     if (n >= 7 && (n % 4) == 3 && !strncmp(charName, "uni", 3)) {
-      unsigned int i, m;
+      int i;
+      unsigned int m;
       for (i = 0, m = 3; i < uLen && m < n; m += 4) {
        if (isxdigit(charName[m]) && isxdigit(charName[m + 1]) && 
            isxdigit(charName[m + 2]) && isxdigit(charName[m + 3])) {
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to