msvcrt: Avoid superfluous cast of MSVCRT_malloc return value.
This commit is contained in:
parent
9696705859
commit
7bfe648666
|
@ -1351,7 +1351,7 @@ int CDECL _ecvt_s( char *buffer, MSVCRT_size_t length, double number, int ndigit
|
||||||
/* handle cases with zero ndigits or less */
|
/* handle cases with zero ndigits or less */
|
||||||
prec = ndigits;
|
prec = ndigits;
|
||||||
if( prec < 1) prec = 2;
|
if( prec < 1) prec = 2;
|
||||||
result = (char*)MSVCRT_malloc(prec + 7);
|
result = MSVCRT_malloc(prec + 7);
|
||||||
|
|
||||||
if( number < 0) {
|
if( number < 0) {
|
||||||
*sign = TRUE;
|
*sign = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue