summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-24 17:56:01 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-24 17:56:01 +0000
commit077a72a91697decae2d5c3d613a9ee58ec6493c1 (patch)
treeba3848bbdcd79e28f9d49cd3454a8c9b60de469c /util.c
parentc56d2bdc900abaaba8c139bba8d2d7ffb126d054 (diff)
downloadperl-077a72a91697decae2d5c3d613a9ee58ec6493c1.tar.gz
microperl tweaks.
p4raw-id: //depot/perl@15470
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index e79dc32f09..7843507f50 100644
--- a/util.c
+++ b/util.c
@@ -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;