From 9ba8470dee98b8da2c813aed8ce2b420abd6548a Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 29 Dec 2008 13:40:33 +0000 Subject: * pack.c (pack_pack): template f should not accept non float values. [ruby-dev:37656] * object.c (rb_to_float): new function to type check floats. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 9d6908973..38f44f94c 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -434,6 +434,7 @@ VALUE rb_check_convert_type(VALUE,int,const char*,const char*); VALUE rb_check_to_integer(VALUE, const char *); VALUE rb_to_int(VALUE); VALUE rb_Integer(VALUE); +VALUE rb_to_float(VALUE); VALUE rb_Float(VALUE); VALUE rb_String(VALUE); VALUE rb_Array(VALUE); -- cgit