summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2007-09-24 19:37:09 +0200
committertege <tege@gmplib.org>2007-09-24 19:37:09 +0200
commit5d6a4d1b3023b5c068b77f8b0119edc898561296 (patch)
tree27c0402da1c5ebd06bd989da981a5199d4cd369f /memory.c
parent2bda54146a40d1710f897bf2892327b6b6154dc5 (diff)
downloadgmp-5d6a4d1b3023b5c068b77f8b0119edc898561296.tar.gz
(__gmp_default_allocate, __gmp_default_reallocate):
Cast size operands in error fprintf's.
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory.c b/memory.c
index 236ca1668..df8edfe19 100644
--- a/memory.c
+++ b/memory.c
@@ -44,7 +44,7 @@ __gmp_default_allocate (size_t size)
ret = malloc (size);
if (ret == 0)
{
- fprintf (stderr, "GNU MP: Cannot allocate memory (size=%u)\n", size);
+ fprintf (stderr, "GNU MP: Cannot allocate memory (size=%lu)\n", (long) size);
abort ();
}
@@ -92,7 +92,7 @@ __gmp_default_reallocate (void *oldptr, size_t old_size, size_t new_size)
ret = realloc (oldptr, new_size);
if (ret == 0)
{
- fprintf (stderr, "GNU MP: Cannot reallocate memory (old_size=%u new_size=%u)\n", old_size, new_size);
+ fprintf (stderr, "GNU MP: Cannot reallocate memory (old_size=%lu new_size=%lu)\n", (long) old_size, (long) new_size);
abort ();
}