diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-24 17:56:01 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-24 17:56:01 +0000 |
commit | 077a72a91697decae2d5c3d613a9ee58ec6493c1 (patch) | |
tree | ba3848bbdcd79e28f9d49cd3454a8c9b60de469c /util.c | |
parent | c56d2bdc900abaaba8c139bba8d2d7ffb126d054 (diff) | |
download | perl-077a72a91697decae2d5c3d613a9ee58ec6493c1.tar.gz |
microperl tweaks.
p4raw-id: //depot/perl@15470
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -339,19 +339,19 @@ S_xstat(pTHX_ int flag) Malloc_t Perl_malloc (MEM_SIZE nbytes) { dTHXs; - return PerlMem_malloc(nbytes); + return (Malloc_t)PerlMem_malloc(nbytes); } Malloc_t Perl_calloc (MEM_SIZE elements, MEM_SIZE size) { dTHXs; - return PerlMem_calloc(elements, size); + return (Malloc_t)PerlMem_calloc(elements, size); } Malloc_t Perl_realloc (Malloc_t where, MEM_SIZE nbytes) { dTHXs; - return PerlMem_realloc(where, nbytes); + return (Malloc_t)PerlMem_realloc(where, nbytes); } Free_t Perl_mfree (Malloc_t where) @@ -941,7 +941,7 @@ Perl_savesharedpv(pTHX_ const char *sv) { register char *newaddr = Nullch; if (sv) { - newaddr = PerlMemShared_malloc(strlen(sv)+1); + newaddr = (char*)PerlMemShared_malloc(strlen(sv)+1); (void)strcpy(newaddr,sv); } return newaddr; |