diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-18 18:45:58 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-18 18:45:58 -0600 |
| commit | d1cec2ff9aa9f8aaf4ad32f28f4f64e18637417e (patch) | |
| tree | c5764b240c903010fdd64b9bc5733dcd7f52965c /tests/tools/git@git.abendless.com:/srv/git | |
| parent | f32599e10de546a11ed90ee7f50a0dbef8f6df84 (diff) | |
| download | zash-d1cec2ff9aa9f8aaf4ad32f28f4f64e18637417e.tar.gz | |
bench: keep the arithmetic totals inside 32 bits
ksh88 works in 32-bit integers, so summing i*2 over 200000 iterations
overflowed and the benchmark reported "differs" instead of a time: the
same script, two answers. Summing (i % 100) * 2 does the same work and
fits in 31 bits.
Diffstat (limited to 'tests/tools/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions
