Fix implicit type declarations. Add required cast.

oldstable
Gerald Pfeifer 2001-10-02 17:18:09 +00:00 committed by Alexandre Julliard
parent ef54643490
commit 714066157c
1 changed files with 3 additions and 3 deletions

View File

@ -653,7 +653,7 @@ unsigned short* wine_rewrite_s4tos2(const wchar_t* str4 )
*/
char *ecvt (double number, int ndigits, int *decpt, int *sign)
{
static buf[40]; /* ought to be enough */
static char buf[40]; /* ought to be enough */
char *dec;
sprintf(buf, "%.*e", ndigits /* FIXME wrong */, number);
*sign = (number < 0);
@ -667,7 +667,7 @@ char *ecvt (double number, int ndigits, int *decpt, int *sign)
*/
char *fcvt (double number, int ndigits, int *decpt, int *sign)
{
static buf[40]; /* ought to be enough */
static char buf[40]; /* ought to be enough */
char *dec;
sprintf(buf, "%.*e", ndigits, number);
*sign = (number < 0);
@ -683,7 +683,7 @@ char *fcvt (double number, int ndigits, int *decpt, int *sign)
*/
char *gcvt (double number, size_t ndigit, char *buff)
{
sprintf(buff, "%.*E", ndigit, number);
sprintf(buff, "%.*E", (int)ndigit, number);
return buff;
}
#endif /* HAVE_ECVT */