=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: msvcrt: Avoid superfluous cast of MSVCRT_malloc return value.

Alexandre Julliard julliard at winehq.org
Fri Oct 21 11:02:01 CDT 2011


Module: wine
Branch: master
Commit: 7bfe648666355585b74e1f31c286ddd1d86aa894
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7bfe648666355585b74e1f31c286ddd1d86aa894

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Fri Oct 21 01:44:45 2011 +0200

msvcrt: Avoid superfluous cast of MSVCRT_malloc return value.

---

 dlls/msvcrt/math.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index 2e3b4fc..4f187de 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -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 */
     prec = ndigits;
     if( prec < 1) prec = 2;
-    result = (char*)MSVCRT_malloc(prec + 7);
+    result = MSVCRT_malloc(prec + 7);
 
     if( number < 0) {
         *sign = TRUE;




More information about the wine-cvs mailing list