Fix typecasts in #2797
G. Del Merritt [Fri, 29 Jan 1999 11:47:25 +0000 (04:47 -0700)]
Message-Id: <199901291847.LAA04828@jhereg.perl.com>
Subject: Not OK: perl 5.00503 +MAINT_TRIAL_5 on MSWin32-x86-object 4.0 (PATCH included)

p4raw-id: //depot/cfgperl@2798

ext/POSIX/POSIX.xs

index ae88aef..474a694 100644 (file)
@@ -3651,13 +3651,13 @@ strftime(fmt, sec, min, hour, mday, mon, year, wday = -1, yday = -1, isdst = -1)
            } else {
                /* Possibly buf overflowed - try again with a bigger buf */
                int     bufsize = strlen(fmt) + sizeof(tmpbuf);
-               char*   buf = safemalloc(bufsize);
+               char*   buf = (char *) safemalloc(bufsize);
                int     buflen;
                while( buf ) {
                    buflen = strftime(buf, bufsize, fmt, &mytm);
                    if ( buflen > 0 && buflen < bufsize ) break;
                    bufsize *= 2;
-                   buf = saferealloc(buf, bufsize);
+                   buf = (char *) saferealloc(buf, bufsize);
                }
                if ( buf ) {
                    ST(0) = sv_2mortal(newSVpv(buf, buflen));