develooper Front page | perl.perl5.porters | Postings from April 2006

[PATCH] signed vs unsigned char * nit

Thread Next
From:
Jarkko Hietaniemi
Date:
April 29, 2006 11:06
Subject:
[PATCH] signed vs unsigned char * nit
Message ID:
200604291759.k3THxTji032009@kosh.hut.fi
--- pp.c.dist	2006-04-29 20:53:51.000000000 +0300
+++ pp.c	2006-04-29 20:54:59.000000000 +0300
@@ -3430,7 +3430,7 @@
     if (SvOK(source)) {
 	s = (const U8*)SvPV_nomg_const(source, slen);
     } else {
-	s = "";
+	s = (U8*)"";
 	slen = 0;
     }
 
@@ -3461,7 +3461,7 @@
 	dest = TARG;
 
 	SvUPGRADE(dest, SVt_PV);
-	d = SvGROW(dest, need);
+	d = (U8*)SvGROW(dest, need);
 	(void)SvPOK_only(dest);
 
 	SETs(dest);
@@ -3554,13 +3554,13 @@
 	if (SvOK(source)) {
 	    s = (const U8*)SvPV_nomg_const(source, len);
 	} else {
-	    s = "";
+	    s = (U8*)"";
 	    len = 0;
 	}
 	min = len + 1;
 
 	SvUPGRADE(dest, SVt_PV);
-	d = SvGROW(dest, min);
+	d = (U8*)SvGROW(dest, min);
 	(void)SvPOK_only(dest);
 
 	SETs(dest);
@@ -3654,13 +3654,13 @@
 	if (SvOK(source)) {
 	    s = (const U8*)SvPV_nomg_const(source, len);
 	} else {
-	    s = "";
+	    s = (U8*)"";
 	    len = 0;
 	}
 	min = len + 1;
 
 	SvUPGRADE(dest, SVt_PV);
-	d = SvGROW(dest, min);
+	d = (U8*)SvGROW(dest, min);
 	(void)SvPOK_only(dest);
 
 	SETs(dest);

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About