diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-06-02 22:38:19 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-06-02 22:38:19 -0400 |
commit | 78366844468c5fa785d05bb25be2d0023e60f5ee (patch) | |
tree | 51c10e8596cfd51a16ce056002bc5ef68b7a2b9e /fc-lang | |
parent | ba7b50ab3324887e1680a4a8961487706705c739 (diff) |
Fix compiler warnings
Diffstat (limited to 'fc-lang')
-rw-r--r-- | fc-lang/fc-lang.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fc-lang/fc-lang.c b/fc-lang/fc-lang.c index 21d568d7..c01fe680 100644 --- a/fc-lang/fc-lang.c +++ b/fc-lang/fc-lang.c @@ -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" |