From 8a0cff6917bc9219abe47c208f7b997d8eb6d7a5 Mon Sep 17 00:00:00 2001 From: "Craig A. Berry" Date: Tue, 29 Jun 2010 22:30:12 -0500 Subject: Needed cast to malloc return value in Piece.xs. g++ said: Piece.xs:906: error: invalid conversion from void* to char* Reported by George Greer in: Message-ID: --- cpan/Time-Piece/Piece.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpan/Time-Piece') diff --git a/cpan/Time-Piece/Piece.xs b/cpan/Time-Piece/Piece.xs index 5d3f992c9a..96f2304085 100644 --- a/cpan/Time-Piece/Piece.xs +++ b/cpan/Time-Piece/Piece.xs @@ -903,7 +903,7 @@ label: for (cp = buf; *cp && isupper((unsigned char)*cp); ++cp) {/*empty*/} if (cp - buf) { - zonestr = malloc(cp - buf + 1); + zonestr = (char *)malloc(cp - buf + 1); if (!zonestr) { errno = ENOMEM; return 0; -- cgit v1.2.1