]> git.wh0rd.org - fontconfig.git/commitdiff
Fix compiler warnings
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 3 Jun 2010 02:38:19 +0000 (22:38 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 3 Jun 2010 02:38:19 +0000 (22:38 -0400)
fc-lang/fc-lang.c

index 21d568d7e8d8e7bdcef48f6ba4fd4e4e77b5b86b..c01fe680584724cbce52908150a6267341fa30f5 100644 (file)
@@ -363,9 +363,9 @@ main (int argc, char **argv)
 
     printf ("#define LEAF0       (%d * sizeof (FcLangCharSet))\n", nsets);
     printf ("#define OFF0        (LEAF0 + %d * sizeof (FcCharLeaf))\n", tl);
-    printf ("#define NUM0        (OFF0 + %d * sizeof (intptr_t))\n", tn);
+    printf ("#define NUM0        (OFF0 + %d * sizeof (uintptr_t))\n", tn);
     printf ("#define SET(n)      (n * sizeof (FcLangCharSet) + offsetof (FcLangCharSet, charset))\n");
-    printf ("#define OFF(s,o)    (OFF0 + o * sizeof (intptr_t) - SET(s))\n");
+    printf ("#define OFF(s,o)    (OFF0 + o * sizeof (uintptr_t) - SET(s))\n");
     printf ("#define NUM(s,n)    (NUM0 + n * sizeof (FcChar16) - SET(s))\n");
     printf ("#define LEAF(o,l)   (LEAF0 + l * sizeof (FcCharLeaf) - (OFF0 + o * sizeof (intptr_t)))\n");
     printf ("#define fcLangCharSets (fcLangData.langCharSets)\n");
@@ -376,7 +376,7 @@ main (int argc, char **argv)
     printf ("static const struct {\n"
            "    FcLangCharSet  langCharSets[%d];\n"
            "    FcCharLeaf     leaves[%d];\n"
-           "    intptr_t       leaf_offsets[%d];\n"
+           "    uintptr_t      leaf_offsets[%d];\n"
            "    FcChar16       numbers[%d];\n"
            "    FcChar%s       langIndices[%d];\n"
            "    FcChar%s       langIndicesInv[%d];\n"