summaryrefslogtreecommitdiff
path: root/bk_pdf.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2012-05-06 11:33:05 +0000
committerSimon Tatham <anakin@pobox.com>2012-05-06 11:33:05 +0000
commit7c09a2ba4b42aa86785e788a5c72cc1e628d7d9a (patch)
treeb0c6a2188b3b67d24e22018401990712425d874a /bk_pdf.c
parent8c69083e9d9358e9c4ae6bed1c4a69af94b78796 (diff)
downloadhalibut-7c09a2ba4b42aa86785e788a5c72cc1e628d7d9a.zip
halibut-7c09a2ba4b42aa86785e788a5c72cc1e628d7d9a.tar.gz
halibut-7c09a2ba4b42aa86785e788a5c72cc1e628d7d9a.tar.bz2
halibut-7c09a2ba4b42aa86785e788a5c72cc1e628d7d9a.tar.xz
OS X Lion's compiler spotted two missing casts, where we use %hu and
pass something that isn't necessarily an unsigned short. [originally from svn r9493]
Diffstat (limited to 'bk_pdf.c')
-rw-r--r--bk_pdf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bk_pdf.c b/bk_pdf.c
index 6daebc6..5ebf67e 100644
--- a/bk_pdf.c
+++ b/bk_pdf.c
@@ -257,6 +257,7 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords,
sprintf(buf, "<%02X>", i + ranges[i] - 1);
objstream(cmap, buf);
sprintf(buf, "%hu\n",
+ (unsigned short)
sfnt_glyphtoindex(fe->font->info->fontfile,
fe->vector[i]));
objstream(cmap, buf);
@@ -278,6 +279,7 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords,
sprintf(buf, "<%02X>", i);
objstream(cmap, buf);
sprintf(buf, "%hu\n",
+ (unsigned short)
sfnt_glyphtoindex(fe->font->info->fontfile,
fe->vector[i]));
objstream(cmap, buf);