Permalink
Browse files

Add DBL2NUM macro for capi

  • Loading branch information...
1 parent 146bdc0 commit 29ed9054fbf333b87c493eee8972191b34861ae2 @ferrous26 committed Dec 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 vm/capi/19/include/ruby/ruby.h
@@ -1910,6 +1910,7 @@ VALUE rb_uint2big(unsigned long number);
VALUE rb_marshal_load(VALUE string);
VALUE rb_float_new(double val);
+#define DBL2NUM(dbl) rb_float_new(dbl)
VALUE rb_Float(VALUE object);

0 comments on commit 29ed905

Please sign in to comment.