summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-08-01 17:20:27 +0100
committerDavid Mitchell <davem@iabyn.com>2016-08-03 20:54:42 +0100
commit5b9ec8a25e399059e3f37bbf00434934e7e34eaa (patch)
tree7f9cbdc1c52be1ac8914fe1e6af284c688b58e74 /perly.y
parent097e9660df79edd7f79559a622cb8f847af3dc15 (diff)
downloadperl-5b9ec8a25e399059e3f37bbf00434934e7e34eaa.tar.gz
silence compiler warning in perly.y
assigning a char from an I32 gives a warning. Add an explicit cast as we know the int only ever holds a char.
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index 86e9681757..6ffe0516d0 100644
--- a/perly.y
+++ b/perly.y
@@ -659,7 +659,7 @@ sigslurpelem: sigslurpsigil sigvarname sigdefault/* def only to catch errors */
if (PL_parser->sig_slurpy)
yyerror("Multiple slurpy parameters not allowed");
- PL_parser->sig_slurpy = sigil;
+ PL_parser->sig_slurpy = (char)sigil;
if (defexpr)
yyerror("A slurpy parameter may not have "