diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-02-06 15:08:55 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-02-06 15:57:12 +0000 |
commit | e193b5dc14a6029b2648a5712c154499d819186f (patch) | |
tree | 2d9d62851bab2033904dc3ceef58d324f2808a9c /base/std.h | |
parent | 3ac7d3c0ed5a339c8e2fe25c43feac92b9813b1b (diff) | |
download | ghostpdl-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.h | 1 |
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 |