From 47417a5cbfbfa3d7bb9ee387909246cdd265d4ff Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Tue, 4 Apr 2017 14:43:05 +0100 Subject: gs_malloc_memory_t: change type of limit/used/max_used The limit, used and max_used values in gs_malloc_memory_t were type ulong, giving rise to differences between LP64 systems (Unix-like) and LLP64 systems (MS Windows). So, make them uint64_t for consistency across platforms. --- base/gsalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/gsalloc.c') diff --git a/base/gsalloc.c b/base/gsalloc.c index 46df2ac2b..3838fd858 100644 --- a/base/gsalloc.c +++ b/base/gsalloc.c @@ -774,7 +774,7 @@ ialloc_alloc_state(gs_memory_t * parent, uint clump_size) #endif iimem->is_controlled = false; iimem->gc_status.vm_threshold = clump_size * 3L; - iimem->gc_status.max_vm = max_long; + iimem->gc_status.max_vm = max_int64_t; iimem->gc_status.signal_value = 0; iimem->gc_status.enabled = false; iimem->gc_status.requested = 0; @@ -861,8 +861,8 @@ ialloc_add_clump(gs_ref_memory_t *imem, ulong space, client_name_t cname) /* Allow acquisition of this clump. */ imem->is_controlled = false; imem->large_size = imem->clump_size; - imem->limit = max_long; - imem->gc_status.max_vm = max_long; + imem->limit = max_int64_t; + imem->gc_status.max_vm = max_int64_t; /* Acquire the clump. */ cp = alloc_add_clump(imem, space, cname); -- cgit v1.2.1