summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-06-27 10:01:13 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-06-27 10:01:13 +0000
commitd97e8d7e3159ea8dc7c20459710b9cd1cb6f53ac (patch)
treeb7fcc4d9a125c2ab6f65f0e8687c543a9dcc9cbd /Build/source
parentc645470683de6ef5b0963af17f6c86abe432df7e (diff)
ttf2pk2: Avoid compiler warnings (found by Mojca)
git-svn-id: svn://tug.org/texlive/trunk@30975 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/ttf2pk2/ChangeLog6
-rw-r--r--Build/source/texk/ttf2pk2/newobj.c2
-rw-r--r--Build/source/texk/ttf2pk2/ttflib.c2
3 files changed, 7 insertions, 3 deletions
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 <peb@mppmu.mpg.de>
+
+ 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 <peb@mppmu.mpg.de>
* 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)