From 85911c410a6b367ba3555f5e86c8e33db37344af Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 25 Jul 2003 05:36:55 +0000 Subject: * ext/socket/socket.c (tcp_s_gethostbyname): was using uninitialized size_t value. [ruby-talk:76946] * Minor cleanups. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 37ff50e8c3..f9eb35c884 100644 --- a/numeric.c +++ b/numeric.c @@ -11,6 +11,7 @@ **********************************************************************/ #include "ruby.h" +#include "env.h" #include #include @@ -131,7 +132,7 @@ rb_num_coerce_bin(x, y) VALUE x, y; { do_coerce(&x, &y, Qtrue); - return rb_funcall(x, rb_frame_last_func(), 1, y); + return rb_funcall(x, ruby_frame->orig_func, 1, y); } VALUE @@ -139,7 +140,7 @@ rb_num_coerce_cmp(x, y) VALUE x, y; { if (do_coerce(&x, &y, Qfalse)) - return rb_funcall(x, rb_frame_last_func(), 1, y); + return rb_funcall(x, ruby_frame->orig_func, 1, y); return Qnil; } @@ -150,7 +151,7 @@ num_coerce_relop(x, y) VALUE c, x0 = x, y0 = y; if (!do_coerce(&x, &y, Qfalse) || - NIL_P(c = rb_funcall(x, rb_frame_last_func(), 1, y))) { + NIL_P(c = rb_funcall(x, ruby_frame->orig_func, 1, y))) { rb_cmperr(x0, y0); return Qnil; /* not reached */ } -- cgit v1.2.3