summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/xcalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/xcalloc.c')
-rw-r--r--Build/source/texk/kpathsea/xcalloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/xcalloc.c b/Build/source/texk/kpathsea/xcalloc.c
index 0d01c1bcd15..9e1fd9dcb86 100644
--- a/Build/source/texk/kpathsea/xcalloc.c
+++ b/Build/source/texk/kpathsea/xcalloc.c
@@ -20,14 +20,14 @@
void *
-xcalloc (unsigned nelem, unsigned elsize)
+xcalloc (size_t nelem, size_t elsize)
{
void *new_mem = (void*)calloc(nelem ? nelem : 1, elsize ? elsize : 1);
if (new_mem == NULL) {
fprintf(stderr,
- "xcalloc: request for %u elements of size %u failed.\n",
- nelem, elsize);
+ "xcalloc: request for %lu elements of size %lu failed.\n",
+ (unsigned long)nelem, (unsigned long)elsize);
exit(EXIT_FAILURE);
}