diff options
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r-- | include/ruby/ruby.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index e37aa7e5f4..6ba9ffb872 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -451,8 +451,10 @@ struct RClass { struct RFloat { struct RBasic basic; - double value; + double double_value; }; +#define RFLOAT_VALUE(v) (RFLOAT(v)->double_value) +#define DOUBLE2NUM(dbl) rb_float_new(dbl) #define ELTS_SHARED FL_USER2 |