Commit ebc157f9 authored by Patrick Lam's avatar Patrick Lam
Browse files

Shut up GCC warnings on amd.

reviewed by: plam
parent 19ea60bc
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:
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment