summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-01-30 12:25:55 +0000
committerDavid Mitchell <davem@iabyn.com>2017-01-30 12:30:30 +0000
commitcbf40e71df30fba4761230a8b62a34d7bb247495 (patch)
treea3be483eaa829f43a69393ad5b0dd1f075a396e0 /toke.c
parent00c7fba717c4212ca81ed1a46acf38ed3685c27c (diff)
downloadperl-cbf40e71df30fba4761230a8b62a34d7bb247495.tar.gz
signature sub (\x80 triggered an assertion
RT #130661 In the presence of 'use feature "signatures"', a char >= 0x80 where a sigil was expected triggered an assert failure, because the (signed) character was being was being promoted to int and ended up getting returned from yylex() as a negative value.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 10ee5007c6..7dcdd5afa1 100644
--- a/toke.c
+++ b/toke.c
@@ -5037,7 +5037,7 @@ Perl_yylex(pTHX)
* as a var; e.g. ($, ...) would be seen as the var '$,'
*/
- char sigil;
+ U8 sigil;
s = skipspace(s);
sigil = *s++;