From d97e8d7e3159ea8dc7c20459710b9cd1cb6f53ac Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Thu, 27 Jun 2013 10:01:13 +0000 Subject: ttf2pk2: Avoid compiler warnings (found by Mojca) git-svn-id: svn://tug.org/texlive/trunk@30975 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/ttf2pk2/ChangeLog | 6 ++++++ Build/source/texk/ttf2pk2/newobj.c | 2 +- Build/source/texk/ttf2pk2/ttflib.c | 2 -- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/ttf2pk2/ChangeLog b/Build/source/texk/ttf2pk2/ChangeLog index 81fa877068d..7b77bca01a5 100644 --- a/Build/source/texk/ttf2pk2/ChangeLog +++ b/Build/source/texk/ttf2pk2/ChangeLog @@ -1,3 +1,9 @@ +2013-06-27 Peter Breitenlohner + + Avoid compiler warnings (found by Mojca). + * newobj.c: Boolean is False/True (No/Yes/Only is PSstate). + * ttflib.c: An unsigned int is never < 0. + 2013-06-10 Peter Breitenlohner * ftlib.c: Apply 'vert'/'vrt2' substitutions for rotated fonts. diff --git a/Build/source/texk/ttf2pk2/newobj.c b/Build/source/texk/ttf2pk2/newobj.c index fc0f5836900..35ecf15b284 100644 --- a/Build/source/texk/ttf2pk2/newobj.c +++ b/Build/source/texk/ttf2pk2/newobj.c @@ -352,7 +352,7 @@ init_font_structure(Font *fnt) fnt->slant = 0; fnt->capheight = 0.8; fnt->PSnames = No; - fnt->rotate = No; + fnt->rotate = False; fnt->efactorparam = NULL; fnt->slantparam = NULL; diff --git a/Build/source/texk/ttf2pk2/ttflib.c b/Build/source/texk/ttf2pk2/ttflib.c index b01ca1209c6..b36b0c72f0c 100644 --- a/Build/source/texk/ttf2pk2/ttflib.c +++ b/Build/source/texk/ttf2pk2/ttflib.c @@ -255,8 +255,6 @@ TTFget_first_glyphs(Font *fnt, long *array) for (i = 0; i <= 0x16FFFF; i++) { Num = FT_Get_Char_Index(face, i); - if (Num < 0) - oops("cmap mapping failure."); if (Num == 0) continue; if (Num <= 256) -- cgit v1.2.3