]> git.wh0rd.org Git - fontconfig.git/commitdiff
Shut up GCC warnings on amd.
authorPatrick Lam <plam@MIT.EDU>
Wed, 21 Dec 2005 20:00:20 +0000 (20:00 +0000)
committerPatrick Lam <plam@MIT.EDU>
Wed, 21 Dec 2005 20:00:20 +0000 (20:00 +0000)
reviewed by: plam

ChangeLog
src/fcpat.c

index f58f2372ebc6a7a8dcf26cc5558ff1ef4b0782ff..93097f48873eefcfd75c3d8bf8e853e1af9bd928 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-21  Jinghua Luo  <sunmoon1997@gmail.com>
+       reviewed by: plam
+
+       * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
+
+       Shut up GCC warnings on amd.
+
 2005-12-20  Patrick Lam         <plam@mit.edu>
        * ChangeLog:
        * README:
index e2bdd3035f1dfd03067dd4d50531c007115d6b4b..9a33e1caabf370332bfe0dccd9a59dfa6fc5babe 100644 (file)
@@ -2020,7 +2020,7 @@ FcPatternAddFullFname (const FcPattern *p, const char *fname)
     /* N.B. FcPatternHash fails, since it's contents-based, not
      * address-based, and we're in the process of mutating the FcPattern. */
     for (pb = &FcPatternDirBuckets
-             [((int)p / sizeof (FcPattern *)) % PATTERNDIR_HASH_SIZE];
+             [((unsigned long)p / sizeof (FcPattern *)) % PATTERNDIR_HASH_SIZE];
          pb->m.p != p && pb->next; 
          pb = pb->next)
         ;
@@ -2047,7 +2047,7 @@ FcPatternFindFullFname (const FcPattern *p)
     struct patternDirBucket    *pb;
 
     for (pb = &FcPatternDirBuckets
-             [((int)p / sizeof (FcPattern *)) % PATTERNDIR_HASH_SIZE]; 
+             [((unsigned long)p / sizeof (FcPattern *)) % PATTERNDIR_HASH_SIZE]; 
          pb; pb = pb->next)
        if (pb->m.p == p)
            return pb->m.fname;