diff options
author | Craig A. Berry <craigberry@mac.com> | 2010-06-29 22:30:12 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2010-06-29 22:30:12 -0500 |
commit | 8a0cff6917bc9219abe47c208f7b997d8eb6d7a5 (patch) | |
tree | ea17a08fc5210ff6c777eaefcc90e23c38323cb3 /cpan/Time-Piece | |
parent | 8e967a1c9f35e7fd5c203418cf4d7abc39df847b (diff) | |
download | perl-8a0cff6917bc9219abe47c208f7b997d8eb6d7a5.tar.gz |
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: <alpine.LFD.2.00.1006292137180.10316@ein.m-l.org>
Diffstat (limited to 'cpan/Time-Piece')
-rw-r--r-- | 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 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; |