diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-10-27 00:50:41 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-10-27 02:05:06 +0900 |
commit | 26353c75a94469bad7a0e6a6aa81d968e64952d5 (patch) | |
tree | ea9c80baa52b68ba840dab278e150f98837e27a5 /numeric.c | |
parent | e3a783b14191fef175c9a59996afdc744c8edc4c (diff) |
Embed bare `double` if `sizeof(double) == sizeof(VALUE)`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5027
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -951,7 +951,7 @@ rb_float_new_in_heap(double d) { NEWOBJ_OF(flt, struct RFloat, rb_cFloat, T_FLOAT | (RGENGC_WB_PROTECTED_FLOAT ? FL_WB_PROTECTED : 0)); -#if SIZEOF_DOUBLE < SIZEOF_VALUE +#if SIZEOF_DOUBLE <= SIZEOF_VALUE flt->float_value = d; #else union { |