diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-08-25 08:27:18 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-08-25 08:27:18 +0000 |
commit | 9e79a59a9cd97513d54c3e6190d2391947daa14b (patch) | |
tree | d301db97dfeb963bb8bdb0e02139d332057d07e7 /Build/source/texk/dvipdfm-x/mem.c | |
parent | 4dc44f751f9c40c83f347420624e498aa936d0ab (diff) |
texk/dvipdfm-x: Replace '(unsigned) long' by '(unsigned) int' or
'(u)int32_t' except when needed with for ftell() and fseek()
git-svn-id: svn://tug.org/texlive/trunk@38200 c570f23f-e606-0410-a88d-b1316a301751
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 { |