From: Patrick Lam Date: Wed, 21 Dec 2005 20:00:20 +0000 (+0000) Subject: Shut up GCC warnings on amd. X-Git-Tag: fc-2_3_94~78 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ebc157f9a1eb266d60d03ad3fa36dc2ba0250db1;p=fontconfig.git Shut up GCC warnings on amd. reviewed by: plam --- diff --git a/ChangeLog b/ChangeLog index f58f237..93097f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-12-21 Jinghua Luo + reviewed by: plam + + * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname): + + Shut up GCC warnings on amd. + 2005-12-20 Patrick Lam * ChangeLog: * README: diff --git a/src/fcpat.c b/src/fcpat.c index e2bdd30..9a33e1c 100644 --- a/src/fcpat.c +++ b/src/fcpat.c @@ -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;