This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
optimising yyparse: avoid a < 0 check
authorDavid Mitchell <davem@iabyn.com>
Sat, 3 Dec 2016 14:08:56 +0000 (14:08 +0000)
committerDavid Mitchell <davem@iabyn.com>
Mon, 5 Dec 2016 11:54:03 +0000 (11:54 +0000)
commit73f2343123f6b98ed4a0b1fc57fd65e720f38b1b
tree5586dc193878d48325595f6fdd9f1f9422c51ca3
parent0e0707c5741b52ed1f26e1f69d89b66a1b05f985
optimising yyparse: avoid a < 0 check

casting to unsigned allows (0 <= yyn <= YYLAST) to be done in a single
conditional.
perly.c