diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-15 06:22:13 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-15 06:22:13 +0000 |
| commit | df6e5f1adb54696acf2891e81b29bbd07cdf544c (patch) | |
| tree | caf29370bda756ddc491eeb03fa6f9415600601f /eval.c | |
| parent | ffc47d9e5bd5d78600188f87a549016f1607d7fd (diff) | |
| download | ruby-df6e5f1adb54696acf2891e81b29bbd07cdf544c.tar.gz ruby-df6e5f1adb54696acf2891e81b29bbd07cdf544c.tar.xz ruby-df6e5f1adb54696acf2891e81b29bbd07cdf544c.zip | |
* eval.c (error_line): remove void control path. [ruby-dev:28335]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1127,10 +1127,8 @@ error_line(struct FRAME *frame, NODE *node) else if (!node && ruby_sourceline == 0) { return rb_str_new2(ruby_sourcefile); } - else { - return rb_sprintf("%s:%d", file, line); - } } + return rb_sprintf("%s:%d", file, line); } #define warn_print(x) rb_write_error(x) @@ -6463,7 +6461,8 @@ static VALUE yield_under_i(VALUE arg) { VALUE *args = (VALUE *)arg; - VALUE avalue = Qtrue; + int avalue = Qtrue; + if (args[0] == Qundef) { avalue = Qfalse; } @@ -6577,7 +6576,7 @@ rb_obj_instance_exec(int argc, VALUE *argv, VALUE self) { VALUE klass; - if (FIXNUM_P(self) || SYMBOL_P(self)) { + if (SPECIAL_CONST_P(self)) { klass = Qnil; } else { |
