diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-03-17 00:44:02 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-03-17 12:18:15 +0000 |
commit | 4cbc36fe4546bce70537bc65541f65b4d7259a5b (patch) | |
tree | 5238751d4306e19bc4f66920604a47a09e0890ab /base/gxclread.c | |
parent | d7961033ee224fc5d2c96a16bea3f3399dd29561 (diff) | |
download | ghostpdl-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.c | 4 |
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; |