From e193b5dc14a6029b2648a5712c154499d819186f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 6 Feb 2020 15:08:55 +0000 Subject: 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. --- base/std.h | 1 + 1 file changed, 1 insertion(+) (limited to 'base/std.h') 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 -- cgit v1.2.1