Skip to content

Commit

Permalink
use sel_getName() to retrive selector name
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jun 7, 2012
1 parent 67e47b9 commit ff86331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatcher.cpp
Expand Up @@ -697,7 +697,7 @@ rb_vm_dispatch(void *_vm, struct mcache *cache, VALUE top, VALUE self,
// Let's see if are not trying to call a Ruby method that accepts
// a regular argument then an optional Hash argument, to be
// compatible with the Ruby specification.
const char *selname = (const char *)sel;
const char *selname = sel_getName(sel);
size_t selname_len = strlen(selname);
if (argc > 1) {
const char *p = strchr(selname, ':');
Expand Down

0 comments on commit ff86331

Please sign in to comment.