Cast results of sizeof() to unsigned int to get rid of warnings on x86_64

(thanks Matthias Clasen).
This commit is contained in:
Patrick Lam 2005-09-28 16:21:14 +00:00
parent 9ecb9a9a06
commit cd3109114c
2 changed files with 26 additions and 20 deletions

View File

@ -1,4 +1,10 @@
2005-09-27 Patrick Lam <plam@mit.edu> 2005-09-28 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcCacheMachineSignature):
Cast results of sizeof() to unsigned int to get rid of
warnings on x86_64 (thanks Matthias Clasen).
2005-09-27 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld, * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
FcDirCacheWrite): FcDirCacheWrite):

View File

@ -886,25 +886,25 @@ FcCacheMachineSignature ()
"%4x %4x %4x %4x %4x %4x %4x %4x %4x %4x %4x %4x " "%4x %4x %4x %4x %4x %4x %4x %4x %4x %4x %4x %4x "
"%4x %4x %4x %4x %4x %4x %4x\n", "%4x %4x %4x %4x %4x %4x %4x\n",
m[0], m[1], m[2], m[3], m[0], m[1], m[2], m[3],
sizeof (char), (unsigned int)sizeof (char),
sizeof (char *), (unsigned int)sizeof (char *),
sizeof (int), (unsigned int)sizeof (int),
sizeof (FcPattern), (unsigned int)sizeof (FcPattern),
sizeof (FcPatternEltPtr), (unsigned int)sizeof (FcPatternEltPtr),
sizeof (struct _FcPatternElt *), (unsigned int)sizeof (struct _FcPatternElt *),
sizeof (FcPatternElt), (unsigned int)sizeof (FcPatternElt),
sizeof (FcObjectPtr), (unsigned int)sizeof (FcObjectPtr),
sizeof (FcValueListPtr), (unsigned int)sizeof (FcValueListPtr),
sizeof (FcValue), (unsigned int)sizeof (FcValue),
sizeof (FcValueBinding), (unsigned int)sizeof (FcValueBinding),
sizeof (struct _FcValueList *), (unsigned int)sizeof (struct _FcValueList *),
sizeof (FcCharSet), (unsigned int)sizeof (FcCharSet),
sizeof (FcCharLeaf **), (unsigned int)sizeof (FcCharLeaf **),
sizeof (FcChar16 *), (unsigned int)sizeof (FcChar16 *),
sizeof (FcChar16), (unsigned int)sizeof (FcChar16),
sizeof (FcCharLeaf), (unsigned int)sizeof (FcCharLeaf),
sizeof (FcChar32), (unsigned int)sizeof (FcChar32),
sizeof (FcCache)); (unsigned int)sizeof (FcCache));
return buf; return buf;
} }