From: G. Del Merritt Date: Fri, 29 Jan 1999 11:47:25 +0000 (-0700) Subject: Fix typecasts in #2797 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=70bfa262033efdebb701aa25b5cf271a55d777af;p=p5sagit%2Fp5-mst-13.2.git Fix typecasts in #2797 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 --- diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index ae88aef..474a694 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -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));