diff options
author | G. Del Merritt <del@intranetics.com> | 1999-01-29 04:47:25 -0700 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-02-02 17:16:07 +0000 |
commit | 70bfa262033efdebb701aa25b5cf271a55d777af (patch) | |
tree | db4b11eec449c30f7fb79a43282e4ed959ed7233 /ext | |
parent | e8227f62804a142aaea998dbf5094253becf02f9 (diff) | |
download | perl-70bfa262033efdebb701aa25b5cf271a55d777af.tar.gz |
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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/POSIX/POSIX.xs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index ae88aefc99..474a694298 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)); |