summaryrefslogtreecommitdiff
path: root/base/std.h
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2020-02-06 15:08:55 +0000
committerRobin Watts <Robin.Watts@artifex.com>2020-02-06 15:57:12 +0000
commite193b5dc14a6029b2648a5712c154499d819186f (patch)
tree2d9d62851bab2033904dc3ceef58d324f2808a9c /base/std.h
parent3ac7d3c0ed5a339c8e2fe25c43feac92b9813b1b (diff)
downloadghostpdl-e193b5dc14a6029b2648a5712c154499d819186f.tar.gz
Bug 702100: Fix memory limit to be based on size_t not long.
I missed this when converting from longs to size_ts. This resulted on different maximums for linux and windows 64bit builds, due to the different size of longs on those two platforms. Update the debugging printfs to make use of the PRIdSIZE macros rather than truncating.
Diffstat (limited to 'base/std.h')
-rw-r--r--base/std.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/std.h b/base/std.h
index 4f91777b9..9c9e817f1 100644
--- a/base/std.h
+++ b/base/std.h
@@ -85,6 +85,7 @@ typedef ulong bits32;
#define max_ushort ARCH_MAX_USHORT
#define max_uint ARCH_MAX_UINT
#define max_ulong ARCH_MAX_ULONG
+#define max_size_t ARCH_MAX_SIZE_T
/* Minimum and maximum values for pointers. */
#if ARCH_PTRS_ARE_SIGNED