Cast strlen to int for printf, so we're 64-bit clean.

This commit is contained in:
Manish Singh 2004-02-22 02:21:37 +00:00
parent 208a720f00
commit de66e750a5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-02-21 Manish Singh <yosh@gimp.org>
* fc-glyphname/fc-glyphname.c: (main):
Cast strlen to int for printf, so we're 64-bit clean.
2004-02-11 Keith Packard <keithp@keithp.com>
* configure.in:

View File

@ -286,7 +286,7 @@ main (int argc, char **argv)
for (i = 0; i < nraw; i++)
printf ("static struct { FcChar32 ucs; FcChar8 name[%d]; }"
" glyph%d = { 0x%lx, \"%s\" };\n",
strlen (raw[i]->name) + 1,
(int) strlen (raw[i]->name) + 1,
i, (unsigned long) raw[i]->ucs, raw[i]->name);
/*