diff options
author | tege <tege@gmplib.org> | 2007-09-24 19:37:09 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2007-09-24 19:37:09 +0200 |
commit | 5d6a4d1b3023b5c068b77f8b0119edc898561296 (patch) | |
tree | 27c0402da1c5ebd06bd989da981a5199d4cd369f /memory.c | |
parent | 2bda54146a40d1710f897bf2892327b6b6154dc5 (diff) | |
download | gmp-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 (); } |