Commit 3eacd40b authored by Luca Boccassi's avatar Luca Boccassi
Browse files

Problem: regexp.match broken on ARM64

Solution: do not cast value.n to Bool before running logical
and/or/not operations.
Casting a negative double to unsigned int is undefined behaviour, and
while on x86 it happens to do the right thing, on ARM it is broken
and "! -1" evaluates as true.
According to the C standard, logical operations are done by comparing
each operand to 0 or 0.0f in case of floating point, so the cast is
not necessary.
parent 169bdede
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment