Shut up GCC warnings on amd.

reviewed by: plam
This commit is contained in:
Patrick Lam 2005-12-21 20:00:20 +00:00
parent 19ea60bc7c
commit ebc157f9a1
2 changed files with 9 additions and 2 deletions

View File

@ -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:

View 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;