summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pkm/paths.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-10-13 06:40:05 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-10-13 06:40:05 +0000
commit114598d40feee6dd9c5de45b0cc7cedefbdedd00 (patch)
treeda3d139f7c74dc58b9bc11fc8d63290dccd35b12 /Build/source/texk/ps2pkm/paths.c
parent79c720fad26a4abca2cf02568777b74ecd68a238 (diff)
texk/ps2pkm: Minor bug fix. Avoid use of LONG (int for Unix but defined as long by MinGW)
git-svn-id: svn://tug.org/texlive/trunk@35365 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ps2pkm/paths.c')
-rw-r--r--Build/source/texk/ps2pkm/paths.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Build/source/texk/ps2pkm/paths.c b/Build/source/texk/ps2pkm/paths.c
index 77d7bde70c2..684ff29b47b 100644
--- a/Build/source/texk/ps2pkm/paths.c
+++ b/Build/source/texk/ps2pkm/paths.c
@@ -231,13 +231,13 @@ struct segment *ILoc(
register struct segment *r;
IfTrace3((MustTraceCalls),"..ILoc(S=%p, x=%d, y=%d)\n",
- S, (LONG) x, (LONG) y);
+ S, (int32_t) x, (int32_t) y);
r = (struct segment *)Allocate(sizeof(struct segment), &movetemplate, 0);
TYPECHECK("Loc", S, SPACETYPE, r, (0), struct segment *);
r->last = r;
r->context = S->context;
- (*S->iconvert)(&r->dest, S, (LONG) x, (LONG) y);
+ (*S->iconvert)(&r->dest, S, (int32_t) x, (int32_t) y);
ConsumeSpace(S);
return(r);
}
@@ -1010,17 +1010,20 @@ void PathDelta(
register struct segment *p, /* input path */
register struct fractpoint *pt) /* pointer to x,y to set */
{
- struct fractpoint mypoint; /* I pass this to TextDelta */
register fractpel x,y; /* working variables for path current point */
for (x=y=0; p != NULL; p=p->link) {
x += p->dest.x;
y += p->dest.y;
+#if 0 /* fonts.h defines TextDelta as empty, thus mypoint is not initialized */
if (p->type == TEXTTYPE) {
+ struct fractpoint mypoint;
+
TextDelta(p, &mypoint);
x += mypoint.x;
y += mypoint.y;
}
+#endif
}
pt->x = x;