projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Silence a warning from (MinGW's) gcc
[p5sagit/p5-mst-13.2.git]
/
ext
/
Time
/
Piece
/
Piece.xs
diff --git
a/ext/Time/Piece/Piece.xs
b/ext/Time/Piece/Piece.xs
index
fa97c4c
..
868a448
100644
(file)
--- a/
ext/Time/Piece/Piece.xs
+++ b/
ext/Time/Piece/Piece.xs
@@
-755,7
+755,7
@@
label:
for (cp = buf; *cp && isupper((unsigned char)*cp); ++cp)
{/*empty*/}
if (cp - buf) {
- zonestr = alloca(cp - buf + 1);
+ zonestr = (char *)alloca(cp - buf + 1);
strncpy(zonestr, buf, cp - buf);
zonestr[cp - buf] = '\0';
tzset();