diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-03-11 17:08:00 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2021-03-20 17:30:38 +0000 |
commit | 08215797e95bb9db1c19e42b644829afb04a43ca (patch) | |
tree | 11aa541fea384b521ff3709a74fe06dafd2f43b0 | |
parent | 3657ca38aec1e0b77e9b6c9aae62f03e212475b3 (diff) | |
download | ghostpdl-08215797e95bb9db1c19e42b644829afb04a43ca.tar.gz |
Fix MSVC warning.
-rw-r--r-- | base/gsmemory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gsmemory.c b/base/gsmemory.c index b0b82e45a..c9b373bc9 100644 --- a/base/gsmemory.c +++ b/base/gsmemory.c @@ -231,7 +231,7 @@ rc_object_type_name(const void *vp, const rc_header *prc) if (prc->memory == 0) return "(unknown)"; pstype = gs_object_type(prc->memory, vp); - if (pstype < 10000) + if ((uintptr_t)pstype < 10000) return ("?????"); if (prc->free != rc_free_struct_only) { /* @@ -244,7 +244,7 @@ rc_object_type_name(const void *vp, const rc_header *prc) dist = (const char *)&dist - (const char *)vp; if (dist < 10000 && dist > -10000) return "(on stack)"; - if ((uintptr_t)pstype < 0x10000 || (uintptr_t)pstype < 0) + if ((uintptr_t)pstype < 0x10000) return "(anomalous)"; } return client_name_string(gs_struct_type_name(pstype)); |