From: Robin Barker Date: Wed, 11 Oct 2006 15:29:43 +0000 (+0100) Subject: RE: g++ compile and make test 100% X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6980eebd7cd40424ba72081bd69d31d2b7576f4f;p=p5sagit%2Fp5-mst-13.2.git RE: g++ compile and make test 100% From: "Robin Barker" Message-ID: <2C2E01334A940D4792B3E115F95B7226120A65@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@28997 --- diff --git a/ext/NDBM_File/typemap b/ext/NDBM_File/typemap index c88725b..b07695d 100644 --- a/ext/NDBM_File/typemap +++ b/ext/NDBM_File/typemap @@ -25,18 +25,18 @@ T_DATUM_V $var.dsize = (int)PL_na; } else { - $var.dptr = \"\"; + $var.dptr = (char *)\"\"; $var.dsize = 0; } T_GDATUM UNIMPLEMENTED OUTPUT T_DATUM_K - sv_setpvn($arg, $var.dptr, $var.dsize); - DBM_ckFilter($arg, filter_fetch_key,\"filter_fetch_key\"); + sv_setpvn($arg, (char *)$var.dptr, $var.dsize); + DBM_ckFilter($arg, filter_fetch_key, \"filter_fetch_key\"); T_DATUM_V - sv_setpvn($arg, $var.dptr, $var.dsize); - DBM_ckFilter($arg, filter_fetch_value,\"filter_fetch_value\"); + sv_setpvn($arg, (char *)$var.dptr, $var.dsize); + DBM_ckFilter($arg, filter_fetch_value, \"filter_fetch_value\"); T_GDATUM sv_usepvn($arg, $var.dptr, $var.dsize); T_PTROBJ