Permalink
Browse files

Use does invokable instead of isa Sub to identify invokables in marsh…

…alling.
  • Loading branch information...
1 parent 7f0ac55 commit 227595580cb7ca28814be48221af7ca78c3db033 @NotFound NotFound committed with Sep 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/pmc/bkmarshal.c
View
@@ -67,7 +67,7 @@ blizkost_marshal_arg(BLIZKOST_NEXUS, PMC *arg) {
c_str = Parrot_str_to_cstring(interp, pkg);
result = sv_2mortal(newSVpv(c_str, strlen(c_str)));
}
- else if (VTABLE_isa(interp, arg, CONST_STRING(interp, "String"))) {
+ else if (VTABLE_does(interp, arg, CONST_STRING(interp, "invokable"))) {
char *c_str = Parrot_str_to_cstring(interp, VTABLE_get_string(interp, arg));
result = sv_2mortal(newSVpv(c_str, strlen(c_str)));
}

0 comments on commit 2275955

Please sign in to comment.