summaryrefslogtreecommitdiff
path: root/base/gsalloc.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2017-04-04 14:43:05 +0100
committerChris Liddell <chris.liddell@artifex.com>2017-04-06 16:47:58 +0100
commit47417a5cbfbfa3d7bb9ee387909246cdd265d4ff (patch)
tree06f0124dafea310ee111f512ab8ca6510749d85f /base/gsalloc.c
parentbfa6b2ecbe48edc69a7d9d22a12419aed25960b8 (diff)
downloadghostpdl-47417a5cbfbfa3d7bb9ee387909246cdd265d4ff.tar.gz
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.
Diffstat (limited to 'base/gsalloc.c')
-rw-r--r--base/gsalloc.c6
1 files changed, 3 insertions, 3 deletions
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);