In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/8a0cff6917bc9219abe47c208f7b997d8eb6d7a5?hp=8e967a1c9f35e7fd5c203418cf4d7abc39df847b>
- Log ----------------------------------------------------------------- commit 8a0cff6917bc9219abe47c208f7b997d8eb6d7a5 Author: Craig A. Berry <[email protected]> Date: Tue Jun 29 22:30:12 2010 -0500 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: <[email protected]> ----------------------------------------------------------------------- Summary of changes: cpan/Time-Piece/Piece.xs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpan/Time-Piece/Piece.xs b/cpan/Time-Piece/Piece.xs index 5d3f992..96f2304 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; -- Perl5 Master Repository
