From ebc157f9a1eb266d60d03ad3fa36dc2ba0250db1 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Wed, 21 Dec 2005 20:00:20 +0000 Subject: [PATCH] Shut up GCC warnings on amd. reviewed by: plam --- ChangeLog | 7 +++++++ src/fcpat.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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; -- 2.39.5