Skip to content

Commit

Permalink
* iseq.c (iseq_s_disasm): check for proc first. based on the
Browse files Browse the repository at this point in the history
  patch by Roger Pack in [ruby-core:27626].  [ruby-core:27227]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jan 20, 2010
1 parent 34271a3 commit 03a284b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Jan 21 08:45:03 2010 Nobuyoshi Nakada <[email protected]>

* iseq.c (iseq_s_disasm): check for proc first. based on the
patch by Roger Pack in [ruby-core:27626]. [ruby-core:27227]

Wed Jan 20 16:09:59 2010 URABE Shyouhei <[email protected]>

* common.mk (compile.$(OBJEXT)): dependencies lacking.
Expand Down
8 changes: 4 additions & 4 deletions iseq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,10 +1012,7 @@ iseq_s_disasm(VALUE klass, VALUE body)

rb_secure(1);

if ((iseq = rb_method_get_iseq(body)) != 0) {
ret = rb_iseq_disasm(iseq->self);
}
else if (rb_obj_is_proc(body)) {
if (rb_obj_is_proc(body)) {
rb_proc_t *proc;
VALUE iseqval;
GetProcPtr(body, proc);
Expand All @@ -1024,6 +1021,9 @@ iseq_s_disasm(VALUE klass, VALUE body)
ret = rb_iseq_disasm(iseqval);
}
}
else if ((iseq = rb_method_get_iseq(body)) != 0) {
ret = rb_iseq_disasm(iseq->self);
}

return ret;
}
Expand Down
4 changes: 2 additions & 2 deletions version.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
#define RUBY_RELEASE_DATE "2010-01-20"
#define RUBY_RELEASE_DATE "2010-01-21"
#define RUBY_PATCHLEVEL -1
#define RUBY_BRANCH_NAME "trunk"

Expand All @@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2010
#define RUBY_RELEASE_MONTH 1
#define RUBY_RELEASE_DAY 20
#define RUBY_RELEASE_DAY 21

#include "ruby/version.h"

Expand Down

0 comments on commit 03a284b

Please sign in to comment.