jscript: Fix compilation issues when dtoa is defined in headers.

This commit is contained in:
Piotr Caban 2013-08-05 13:59:34 +02:00 committed by Alexandre Julliard
parent 1f2d556373
commit 2e752a115a
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ static inline NumberInstance *number_this(vdisp_t *jsthis)
return is_vclass(jsthis, JSCLASS_NUMBER) ? number_from_vdisp(jsthis) : NULL;
}
static inline void dtoa(double d, WCHAR *buf, int size, int *dec_point)
static inline void number_to_str(double d, WCHAR *buf, int size, int *dec_point)
{
ULONGLONG l;
int i;
@ -113,7 +113,7 @@ static inline jsstr_t *number_to_fixed(double val, int prec)
if(buf_size > NUMBER_DTOA_SIZE)
buf_size = NUMBER_DTOA_SIZE;
dtoa(val, buf, buf_size, &dec_point);
number_to_str(val, buf, buf_size, &dec_point);
dec_point++;
size = 0;
if(neg)
@ -171,7 +171,7 @@ static inline jsstr_t *number_to_exponential(double val, int prec)
buf_size = prec+2;
if(buf_size<2 || buf_size>NUMBER_DTOA_SIZE)
buf_size = NUMBER_DTOA_SIZE;
dtoa(val, buf, buf_size, &dec_point);
number_to_str(val, buf, buf_size, &dec_point);
buf_size--;
if(prec == -1)
for(; buf_size>1 && buf[buf_size-1]=='0'; buf_size--)