summaryrefslogtreecommitdiff
path: root/base/gxcpath.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/gxcpath.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/gxcpath.c')
-rw-r--r--base/gxcpath.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/gxcpath.c b/base/gxcpath.c
index 4c3d34781..f51b84a9d 100644
--- a/base/gxcpath.c
+++ b/base/gxcpath.c
@@ -172,8 +172,8 @@ gx_cpath_init_contained_shared(gx_clip_path * pcpath,
{
if (shared) {
if (shared->path.segments == &shared->path.local_segments) {
- lprintf1("Attempt to share (local) segments of clip path 0x%lx!\n",
- (ulong) shared);
+ lprintf1("Attempt to share (local) segments of clip path "PRI_INTPTR"!\n",
+ (intptr_t)shared);
return_error(gs_error_Fatal);
}
*pcpath = *shared;
@@ -230,8 +230,8 @@ gx_cpath_init_local_shared_nested(gx_clip_path * pcpath,
if (shared) {
if ((shared->path.segments == &shared->path.local_segments) &&
!safely_nested) {
- lprintf1("Attempt to share (local) segments of clip path 0x%lx!\n",
- (ulong) shared);
+ lprintf1("Attempt to share (local) segments of clip path "PRI_INTPTR"!\n",
+ (intptr_t)shared);
return_error(gs_error_Fatal);
}
pcpath->path = shared->path;