summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/tt_glyf.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-08-25 08:27:18 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-08-25 08:27:18 +0000
commit9e79a59a9cd97513d54c3e6190d2391947daa14b (patch)
treed301db97dfeb963bb8bdb0e02139d332057d07e7 /Build/source/texk/dvipdfm-x/tt_glyf.c
parent4dc44f751f9c40c83f347420624e498aa936d0ab (diff)
texk/dvipdfm-x: Replace '(unsigned) long' by '(unsigned) int' or
'(u)int32_t' except when needed with for ftell() and fseek() git-svn-id: svn://tug.org/texlive/trunk@38200 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/tt_glyf.c')
-rw-r--r--Build/source/texk/dvipdfm-x/tt_glyf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/dvipdfm-x/tt_glyf.c b/Build/source/texk/dvipdfm-x/tt_glyf.c
index da3ec6be550..cd1fbfd336b 100644
--- a/Build/source/texk/dvipdfm-x/tt_glyf.c
+++ b/Build/source/texk/dvipdfm-x/tt_glyf.c
@@ -1,6 +1,6 @@
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
- Copyright (C) 2002-2014 by Jin-Hwan Cho and Shunsaku Hirata,
+ Copyright (C) 2002-2015 by Jin-Hwan Cho and Shunsaku Hirata,
the dvipdfmx project team.
This program is free software; you can redistribute it and/or modify
@@ -210,7 +210,7 @@ tt_build_tables (sfnt *sfont, struct tt_glyphs *g)
struct tt_os2__table *os2;
/* temp */
ULONG *location, offset;
- long i;
+ int i;
USHORT *w_stat; /* Estimate most frequently appeared width */
ASSERT(g);
@@ -448,8 +448,8 @@ tt_build_tables (sfnt *sfont, struct tt_glyphs *g)
offset = 0UL; prev = 0;
for (i = 0; i < g->num_glyphs; i++) {
- long gap, j;
- gap = (long) g->gd[i].gid - prev - 1;
+ int gap, j;
+ gap = g->gd[i].gid - prev - 1;
for (j = 1; j <= gap; j++) {
if (prev + j == hhea->numOfLongHorMetrics - 1) {
p += sfnt_put_ushort(p, last_advw);
@@ -518,7 +518,7 @@ tt_get_metrics (sfnt *sfont, struct tt_glyphs *g)
struct tt_os2__table *os2;
/* temp */
ULONG *location, offset;
- long i;
+ int i;
USHORT *w_stat;
ASSERT(g);