summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-04-13 18:16:28 +0900
committerKOBAYASHI Shuji <[email protected]>2019-04-13 19:27:17 +0900
commitf639da0f1c32c20255c32821191697d35350c1ad (patch)
treee9049cbf7c4ffe9117eba7564bf87cbeb5772ded /src/variable.c
parent79fd986bcb2c6bc056a08669664c0024d77725f9 (diff)
downloadmruby-f639da0f1c32c20255c32821191697d35350c1ad.tar.gz
mruby-f639da0f1c32c20255c32821191697d35350c1ad.zip
Fix broken NaN with `MRB_NAN_BOXING`
Example: $ bin/mruby -e '(Float::INFINITY - Float::INFINITY).nan?' zsh: segmentation fault Cause: `SET_FLOAT_VALUE` is not used. It is needed for normalizing NaN. Treatment: In my environment, this issue could be reproduced only when `infinity - infinity`, however `SET_FLOAT_VALUE` should be used in all arithmetic operations (regardless of boxing setting), I think. So I fixed all similar codes by extracting to macro.
Diffstat (limited to 'src/variable.c')
0 files changed, 0 insertions, 0 deletions