[Tarantool-patches] [PATCH luajit] Fix narrowing of unary minus.
Igor Munkin
imun at tarantool.org
Mon Dec 12 12:42:52 MSK 2022
Max,
I've checked the patches into all long-term branches in tarantool/luajit
and bumped a new version in master, 2.10 and 1.10.
On 09.09.22, Maksim Kokryashkin wrote:
> From: Mike Pall <mike>
>
> With DUALNUM mode disabled, unary minus narrowing can produce
> inconsistent results on zeros, returning both -0 and 0 on the
> same chunk of code.
>
> This patch fixes the inconsistency by adding checks for zeros.
>
> Part of tarantool/tarantool#7230
> Resolves tarantool/tarantool#6976
> ---
> Issue: https://github.com/tarantool/tarantool/issues/6976
> Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-6976-narrowing-of-unary-minus
> PR: https://github.com/tarantool/tarantool/pull/7662
>
> src/lj_opt_narrow.c | 9 +++--
> .../gh-6976-narrowing-of-unary-minus.test.lua | 34 +++++++++++++++++++
> 2 files changed, 41 insertions(+), 2 deletions(-)
> create mode 100644 test/tarantool-tests/gh-6976-narrowing-of-unary-minus.test.lua
>
<snipped>
> --
> 2.32.1 (Apple Git-133)
>
--
Best regards,
IM
More information about the Tarantool-patches
mailing list