]> git.wh0rd.org - fontconfig.git/commitdiff
Cast results of sizeof() to unsigned int to get rid of warnings on x86_64
authorPatrick Lam <plam@MIT.EDU>
Wed, 28 Sep 2005 16:21:14 +0000 (16:21 +0000)
committerPatrick Lam <plam@MIT.EDU>
Wed, 28 Sep 2005 16:21:14 +0000 (16:21 +0000)
    (thanks Matthias Clasen).

ChangeLog
src/fccache.c

index 31d7bd7b158b49a6b23c86aad2deabe880c900e3..2f7f85d4b228de9b29fa93181e0affa154d725e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
                 FcDirCacheWrite):
 
index ecd8429d5d9e44b2b0c1896bd0b7de40f90e16e5..0dc697e8f2e9d9d86d7eda64cda4895055d56bd7 100644 (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\n", 
             m[0], m[1], m[2], m[3],
-            sizeof (char),
-            sizeof (char *),
-            sizeof (int),
-            sizeof (FcPattern),
-            sizeof (FcPatternEltPtr),
-            sizeof (struct _FcPatternElt *),
-            sizeof (FcPatternElt),
-            sizeof (FcObjectPtr),
-            sizeof (FcValueListPtr),
-            sizeof (FcValue),
-            sizeof (FcValueBinding),
-            sizeof (struct _FcValueList *),
-            sizeof (FcCharSet),
-            sizeof (FcCharLeaf **),
-            sizeof (FcChar16 *),
-            sizeof (FcChar16),
-            sizeof (FcCharLeaf),
-            sizeof (FcChar32),
-            sizeof (FcCache));
+            (unsigned int)sizeof (char),
+            (unsigned int)sizeof (char *),
+            (unsigned int)sizeof (int),
+            (unsigned int)sizeof (FcPattern),
+            (unsigned int)sizeof (FcPatternEltPtr),
+            (unsigned int)sizeof (struct _FcPatternElt *),
+            (unsigned int)sizeof (FcPatternElt),
+            (unsigned int)sizeof (FcObjectPtr),
+            (unsigned int)sizeof (FcValueListPtr),
+            (unsigned int)sizeof (FcValue),
+            (unsigned int)sizeof (FcValueBinding),
+            (unsigned int)sizeof (struct _FcValueList *),
+            (unsigned int)sizeof (FcCharSet),
+            (unsigned int)sizeof (FcCharLeaf **),
+            (unsigned int)sizeof (FcChar16 *),
+            (unsigned int)sizeof (FcChar16),
+            (unsigned int)sizeof (FcCharLeaf),
+            (unsigned int)sizeof (FcChar32),
+            (unsigned int)sizeof (FcCache));
 
     return buf;
 }