diff options
Diffstat (limited to 'base/gxhintn.c')
-rw-r--r-- | base/gxhintn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/gxhintn.c b/base/gxhintn.c index dc28c00d..30847bcb 100644 --- a/base/gxhintn.c +++ b/base/gxhintn.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2019 Artifex Software, Inc. +/* Copyright (C) 2001-2020 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -648,11 +648,11 @@ static void t1_hinter__make_zone(t1_hinter * self, t1_zone *zone, float * blues, static bool t1_hinter__realloc_array(gs_memory_t *mem, void **a, void *a0, int *max_count, int elem_size, int enhancement, const char *cname) { - void *aa = gs_alloc_bytes(mem, (*max_count + enhancement * 2) * elem_size, cname); + void *aa = gs_alloc_bytes(mem, (size_t)(*max_count + enhancement * 2) * elem_size, cname); if (aa == NULL) return true; - memcpy(aa, *a, *max_count * elem_size); + memcpy(aa, *a, (size_t)*max_count * elem_size); if (*a != a0) gs_free_object(mem, *a, cname); *a = aa; |