summaryrefslogtreecommitdiff
path: root/printf/snprntffuns.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-01-17 00:51:01 +0100
committerKevin Ryde <user42@zip.com.au>2002-01-17 00:51:01 +0100
commit2059dcc8f3e079c1f9e1ef3da665eca5884afc7b (patch)
treee710d9db70eef682021add8f7ab81a7ff7b016bd /printf/snprntffuns.c
parentb715f7ad21ab6aa7e9f9ba4d55a39ff78877e1cc (diff)
downloadgmp-2059dcc8f3e079c1f9e1ef3da665eca5884afc7b.tar.gz
* gmp-impl.h, mpq/get_str.c, printf/asprntffuns.c, printf/doprnt.c,
printf/repl-vsnprintf.c, printf/snprntffuns.c: Some fixes to compile as C++.
Diffstat (limited to 'printf/snprntffuns.c')
-rw-r--r--printf/snprntffuns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/printf/snprntffuns.c b/printf/snprntffuns.c
index c17680a2b..0fe40f88f 100644
--- a/printf/snprntffuns.c
+++ b/printf/snprntffuns.c
@@ -4,7 +4,7 @@
CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN
FUTURE GNU MP RELEASES.
-Copyright 2001 Free Software Foundation, Inc.
+Copyright 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -97,7 +97,7 @@ gmp_snprintf_format (struct gmp_snprintf_t *d, const char *fmt,
do
{
alloc *= 2;
- p = (*__gmp_allocate_func) (alloc);
+ p = __GMP_ALLOCATE_FUNC_TYPE (alloc, char);
va_copy (ap, orig_ap);
ret = vsnprintf (p, alloc, fmt, ap);
(*__gmp_free_func) (p, alloc);