diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-29 13:40:33 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-29 13:40:33 +0000 |
| commit | 9ba8470dee98b8da2c813aed8ce2b420abd6548a (patch) | |
| tree | 23ba13bfdfb9f68d7fdeefb9f774968ffa2b8e01 /include/ruby/intern.h | |
| parent | 37379378fa275baf099e0fda7240197ff6c03008 (diff) | |
| download | ruby-9ba8470dee98b8da2c813aed8ce2b420abd6548a.tar.gz ruby-9ba8470dee98b8da2c813aed8ce2b420abd6548a.tar.xz ruby-9ba8470dee98b8da2c813aed8ce2b420abd6548a.zip | |
* 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
Diffstat (limited to 'include/ruby/intern.h')
| -rw-r--r-- | include/ruby/intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
