OS X Lion's compiler spotted two missing casts, where we use %hu and
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 6 May 2012 11:33:05 +0000 (11:33 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 6 May 2012 11:33:05 +0000 (11:33 +0000)
pass something that isn't necessarily an unsigned short.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@9493 cda61777-01e9-0310-a592-d414129be87e

bk_pdf.c

index 6daebc6..5ebf67e 100644 (file)
--- 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",
                        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);
                                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",
                        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);
                                sfnt_glyphtoindex(fe->font->info->fontfile,
                                                  fe->vector[i]));
                        objstream(cmap, buf);