← Commit list

d6f98f214

Denys Vlasenko
Denys Vlasenko
2023-06-17
SUCCESS Duration: 154s

Subject

shell/math: code shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/math.c+3 -3
@@ -889,9 +889,9 @@ dbg(" numstack:%d val:%lld '%s'", (int)(numstackptr - numstack), numstackptr[
*/
if (math_state->evaluation_disabled & TOP_BIT_ULL)
goto err; /* >63 levels of ?: nesting not supported */
- math_state->evaluation_disabled <<= 1;
- if (numstackptr[-1].val == 0)
- math_state->evaluation_disabled |= 1;
+ math_state->evaluation_disabled =
+ (math_state->evaluation_disabled << 1)
+ | (numstackptr[-1].val == 0);
dbg("'?' entered: evaluation_disabled=%llx", EVAL_DISABLED);
}
} /* if */