summaryrefslogtreecommitdiff
path: root/dviware/dvipng/vf.c
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvipng/vf.c')
-rw-r--r--dviware/dvipng/vf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dviware/dvipng/vf.c b/dviware/dvipng/vf.c
index c6470c6397..28e429eb26 100644
--- a/dviware/dvipng/vf.c
+++ b/dviware/dvipng/vf.c
@@ -80,7 +80,7 @@ void InitVF(struct font_entry * tfontp)
position += 8;
while(*position >= FNT_DEF1 && *position <= FNT_DEF4) {
DEBUG_PRINT(DEBUG_VF,("\n @%ld VF:\t%s",
- (long)position - (long)tfontp->fmmap.data,
+ (long)((char *)position - tfontp->fmmap.data),
dvi_commands[*position]));
FontDef(position,tfontp);
length = dvi_commandlength[*position];
@@ -95,7 +95,7 @@ void InitVF(struct font_entry * tfontp)
/* Read char definitions */
while(*position < FNT_DEF1) {
DEBUG_PRINT(DEBUG_VF,("\n@%ld VF CHAR:\t",
- (long)position - (long)tfontp->fmmap.data));
+ (long)((char *)position - tfontp->fmmap.data)));
if ((tcharptr=malloc(sizeof(struct char_entry)))==NULL)
Fatal("cannot allocate memory for VF char entry");
switch (*position) {