summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2001-07-07 14:04:54 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-07 15:22:08 +0000
commit58bb9ec35570407378c221c05d56adab1a48b1e6 (patch)
treecdcdb9ffb61b1500c545a058b9bedf7cdf88b4d6 /numeric.c
parent181f5113b42dc68c705079ab45842d952c071b37 (diff)
downloadperl-58bb9ec35570407378c221c05d56adab1a48b1e6.tar.gz
Re: op/arith.t
Message-ID: <20010707130454.D59620@plum.flirble.org> p4raw-id: //depot/perl@11190
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/numeric.c b/numeric.c
index 00d58bc4d6..ec93d6b48d 100644
--- a/numeric.c
+++ b/numeric.c
@@ -401,49 +401,49 @@ Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep)
With it gcc on arm is managing 6 instructions (6 cycles) per digit.
In theory the optimiser could deduce how far to unroll the loop
before checking for overflow. */
- if (s < send) {
- int digit = *++s - '0';
+ if (++s < send) {
+ int digit = *s - '0';
if (digit >= 0 && digit <= 9) {
value = value * 10 + digit;
- if (s < send) {
- digit = *++s - '0';
+ if (++s < send) {
+ digit = *s - '0';
if (digit >= 0 && digit <= 9) {
value = value * 10 + digit;
- if (s < send) {
- digit = *++s - '0';
+ if (++s < send) {
+ digit = *s - '0';
if (digit >= 0 && digit <= 9) {
value = value * 10 + digit;
- if (s < send) {
- digit = *++s - '0';
+ if (++s < send) {
+ digit = *s - '0';
if (digit >= 0 && digit <= 9) {
value = value * 10 + digit;
- if (s < send) {
- digit = *++s - '0';
+ if (++s < send) {
+ digit = *s - '0';
if (digit >= 0 && digit <= 9) {
value = value * 10 + digit;
- if (s < send) {
- digit = *++s - '0';
+ if (++s < send) {
+ digit = *s - '0';
if (digit >= 0 && digit <= 9) {
value = value * 10 + digit;
- if (s < send) {
- digit = *++s - '0';
+ if (++s < send) {
+ digit = *s - '0';
if (digit >= 0 && digit <= 9) {
value = value * 10 + digit;
- if (s < send) {
- digit = *++s - '0';
+ if (++s < send) {
+ digit = *s - '0';
if (digit >= 0 && digit <= 9) {
value = value * 10 + digit;
- if (s < send) {
+ if (++s < send) {
/* Now got 9 digits, so need to check
each time for overflow. */
- digit = *++s - '0';
+ digit = *s - '0';
while (digit >= 0 && digit <= 9
&& (value < max_div_10
|| (value == max_div_10
&& digit <= max_mod_10))) {
value = value * 10 + digit;
- if (s < send)
- digit = *++s - '0';
+ if (++s < send)
+ digit = *s - '0';
else
break;
}