diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-03 17:41:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-03 17:41:27 +0000 |
commit | bf22dff8ea5f3ac94ab1a354abea48fd7c3f272c (patch) | |
tree | b7446003066ef74f51a964c2d9368871f87a32c4 /math.c | |
parent | 880d7af47a66f021712eac17adffac2686d08aad (diff) | |
download | ruby-bf22dff8ea5f3ac94ab1a354abea48fd7c3f272c.tar.gz |
* eval.c (cvar_cbase): class variables cause SEGV in
instance_eval() for fixnums and symbols. [ruby-dev:24213]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -333,28 +333,6 @@ math_log(obj, x) /* * call-seq: - * Math.log2(numeric) => float - * - * Returns the base 2 logarithm of <i>numeric</i>. - */ - -static VALUE -math_log2(obj, x) - VALUE obj, x; -{ - double d; - - Need_Float(x); - errno = 0; - d = log2(RFLOAT(x)->value); - if (errno) { - rb_sys_fail("log2"); - } - return rb_float_new(d); -} - -/* - * call-seq: * Math.log10(numeric) => float * * Returns the base 10 logarithm of <i>numeric</i>. @@ -533,7 +511,6 @@ Init_Math() rb_define_module_function(rb_mMath, "exp", math_exp, 1); rb_define_module_function(rb_mMath, "log", math_log, 1); - rb_define_module_function(rb_mMath, "log2", math_log, 1); rb_define_module_function(rb_mMath, "log10", math_log10, 1); rb_define_module_function(rb_mMath, "sqrt", math_sqrt, 1); |