summaryrefslogtreecommitdiff
path: root/base/gxclread.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2020-03-17 00:44:02 +0000
committerRobin Watts <Robin.Watts@artifex.com>2020-03-17 12:18:15 +0000
commit4cbc36fe4546bce70537bc65541f65b4d7259a5b (patch)
tree5238751d4306e19bc4f66920604a47a09e0890ab /base/gxclread.c
parentd7961033ee224fc5d2c96a16bea3f3399dd29561 (diff)
downloadghostpdl-4cbc36fe4546bce70537bc65541f65b4d7259a5b.tar.gz
Bug 702151: Avoid truncating pointers in debug code.
Introduce a PRI_INTPTR and use that to consistently display pointers. We avoid using %p, as that displays inconsistently between platforms. Sometimes it does 0x%x, sometimes just %x.
Diffstat (limited to 'base/gxclread.c')
-rw-r--r--base/gxclread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gxclread.c b/base/gxclread.c
index 665450026..fd6136f59 100644
--- a/base/gxclread.c
+++ b/base/gxclread.c
@@ -197,9 +197,9 @@ rb:
}
# endif
if_debug5m('l', ss->local_memory,
- "[l]reading for bands (%d,%d) at bfile %ld, cfile %ld, length %u\n",
+ "[l]reading for bands (%d,%d) at bfile %"PRId64", cfile %"PRId64", length %u\n",
bmin, bmax,
- (long)(io_procs->ftell(bfile) - sizeof(ss->b_this)), (long)pos, left);
+ (io_procs->ftell(bfile) - sizeof(ss->b_this)), (int64_t)pos, left);
}
}
pw->ptr = q;