printf/sprintffuns.c fix
Marco Trudel
marco at mtsystems.ch
Thu Oct 13 11:49:54 CEST 2011
Dear all
Looks to me like there has been a copy paste error for the arguments in
"printf/sprintffuns.c":
static int gmp_sprintf_reps (char **bufp, int c, int reps)
static int gmp_sprintf_final (char **bufp, int c, int reps)
The final function doesn't need "c" and "reps". The only call to it
seems to be in "__gmp_doprnt" (doprnt.c):
if ((*funs->final) (data) == -1)
goto error;
Hope that's correct and helps
Marco
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sprintffuns-patch.txt
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20111013/44b6cb6b/attachment.txt>
More information about the gmp-bugs
mailing list