We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ddb48 commit c202865Copy full SHA for c202865
numeric.c
@@ -513,7 +513,7 @@ Perl_grok_bin_oct_hex(pTHX_ const char *start,
513
/* Note XDIGIT_VALUE() is branchless, works on binary
514
* and octal as well, so can be used here, without
515
* slowing those down */
516
- factor *= 1 << shift;
+ factor *= base;
517
continue;
518
}
519
@@ -530,7 +530,7 @@ Perl_grok_bin_oct_hex(pTHX_ const char *start,
530
* 'value_nv' eventually, either when all digits are gone, or we
531
* have overflowed this fresh start. */
532
value = XDIGIT_VALUE(*s);
533
- factor = 1 << shift;
+ factor = base;
534
535
if (! overflowed) {
536
overflowed = TRUE;
0 commit comments