summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipng/dvipng-1.14/pk.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-07-15 07:06:38 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-07-15 07:06:38 +0000
commit15a3c5c0dc3253647bbf40b2826fbbbb8474fab3 (patch)
tree710e89852ecf9dd53be67344408954ca21ca4a72 /Build/source/texk/dvipng/dvipng-1.14/pk.c
parent12488878f1c86fcf3f6be3364da9761036213135 (diff)
Avoid cast from pointer to integer of different size on 64-bit Windows
git-svn-id: svn://tug.org/texlive/trunk@34615 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/dvipng-1.14/pk.c')
-rw-r--r--Build/source/texk/dvipng/dvipng-1.14/pk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/dvipng/dvipng-1.14/pk.c b/Build/source/texk/dvipng/dvipng-1.14/pk.c
index 446dc7ed2ee..303db8f5132 100644
--- a/Build/source/texk/dvipng/dvipng-1.14/pk.c
+++ b/Build/source/texk/dvipng/dvipng-1.14/pk.c
@@ -345,8 +345,13 @@ void InitPK(struct font_entry * tfontp)
/* Read char definitions */
position = skip_specials(position);
while (*position != PK_POST) {
+#ifdef _WIN64
+ DEBUG_PRINT(DEBUG_PK,("\n @%I64d PK CHAR:\t%d",
+ (__int64)position - (_int64)tfontp->fmmap.data, *position));
+#else
DEBUG_PRINT(DEBUG_PK,("\n @%ld PK CHAR:\t%d",
(long)position - (long)tfontp->fmmap.data, *position));
+#endif
if ((tcharptr = malloc(sizeof(struct char_entry))) == NULL)
Fatal("cannot malloc space for char_entry");
tcharptr->flag_byte = *position;