summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2023-02-17 15:51:16 +0000
committerMatt Valentine-House <matt@eightbitraptor.com>2023-04-06 11:07:16 +0100
commit026321c5b976c5e95731046b94555b1226198be4 (patch)
tree35ba000a654e41ede4ccb9a30322f08b748cb2f7 /numeric.c
parent879cda98a4cdce91d736ea9ba81168effe090718 (diff)
downloadruby-026321c5b976c5e95731046b94555b1226198be4.tar.gz
[Feature #19474] Refactor NEWOBJ macros
NEWOBJ_OF is now our canonical newobj macro. It takes an optional ec
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index ab8dde52f4..224b5c7dc2 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1018,7 +1018,7 @@ num_negative_p(VALUE num)
VALUE
rb_float_new_in_heap(double d)
{
- NEWOBJ_OF(flt, struct RFloat, rb_cFloat, T_FLOAT | (RGENGC_WB_PROTECTED_FLOAT ? FL_WB_PROTECTED : 0));
+ NEWOBJ_OF(flt, struct RFloat, rb_cFloat, T_FLOAT | (RGENGC_WB_PROTECTED_FLOAT ? FL_WB_PROTECTED : 0), sizeof(struct RFloat), 0);
#if SIZEOF_DOUBLE <= SIZEOF_VALUE
flt->float_value = d;