diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-02 09:30:09 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 20:15:18 -0800 |
commit | 613faa245437bb948b4c86ea6c7fbb716e38f0bf (patch) | |
tree | 2fa7f2342447e3e7a3296786da61f909dc2c3384 /src/bitmap/snfread.c | |
parent | f24c559bcb42e3ea9321c3e6a9ecf0720a581e33 (diff) |
Fix printf warnings about incorrect argument types
Mostly due to difference between sizeof & int on 64-bit platforms
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/bitmap/snfread.c')
-rw-r--r-- | src/bitmap/snfread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bitmap/snfread.c b/src/bitmap/snfread.c index b2b0c67..da362c8 100644 --- a/src/bitmap/snfread.c +++ b/src/bitmap/snfread.c @@ -454,12 +454,14 @@ snfReadFontInfo(FontInfoPtr pFontInfo, FontFilePtr file) pFontInfo->props = malloc(fi.nProps * sizeof(FontPropRec)); if (!pFontInfo->props) { - snfError("snfReadFontInfo(): Couldn't allocate props (%d*%d)\n", fi.nProps, sizeof(FontPropRec)); + snfError("snfReadFontInfo(): Couldn't allocate props (%d*%d)\n", + fi.nProps, (int) sizeof(FontPropRec)); return AllocError; } pFontInfo->isStringProp = malloc(fi.nProps * sizeof(char)); if (!pFontInfo->isStringProp) { - snfError("snfReadFontInfo(): Couldn't allocate isStringProp (%d*%d)\n", fi.nProps, sizeof(char)); + snfError("snfReadFontInfo(): Couldn't allocate isStringProp (%d*%d)\n", + fi.nProps, (int) sizeof(char)); free(pFontInfo->props); return AllocError; } |