diff options
Diffstat (limited to 'Build/source/texk/dvipdfm-x/mem.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/mem.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/texk/dvipdfm-x/mem.c b/Build/source/texk/dvipdfm-x/mem.c index 34fc8a6b2a5..1e2f685d95a 100644 --- a/Build/source/texk/dvipdfm-x/mem.c +++ b/Build/source/texk/dvipdfm-x/mem.c @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2002-2014 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2015 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> @@ -31,22 +31,22 @@ #include "mem.h" #include "error.h" -void *new (size_t size) +void *new (uint32_t size) { - void *result = malloc (size); + void *result = malloc ((size_t)size); if (!result) { - ERROR("Out of memory - asked for %lu bytes\n", (unsigned long) size); + ERROR("Out of memory - asked for %u bytes\n", size); } return result; } -void *renew (void *mem, size_t size) +void *renew (void *mem, uint32_t size) { if (size) { - void *result = realloc (mem, size); + void *result = realloc (mem, (size_t)size); if (!result) { - ERROR("Out of memory - asked for %lu bytes\n", (unsigned long) size); + ERROR("Out of memory - asked for %u bytes\n", size); } return result; } else { |