Permalink
Browse files

Fix mistake caused by my previous commits, not sure why

  • Loading branch information...
1 parent 2275955 commit 6cd3142b4e08d00df3b7283dbbfddc28a94876a6 @NotFound NotFound committed Sep 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/pmc/bkmarshal.c
View
@@ -67,11 +67,11 @@ 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_does(interp, arg, CONST_STRING(interp, "invokable"))) {
+ else if (VTABLE_isa(interp, arg, CONST_STRING(interp, "String"))) {
char *c_str = Parrot_str_to_cstring(interp, VTABLE_get_string(interp, arg));
result = sv_2mortal(newSVpv(c_str, strlen(c_str)));
}
- else if (VTABLE_isa(interp, arg, CONST_STRING(interp, "Sub"))) {
+ else if (VTABLE_does(interp, arg, CONST_STRING(interp, "invokable"))) {
CV *wrapper = blizkost_wrap_callable(nexus, arg);
result = sv_2mortal(newRV_inc((SV*)wrapper));
}

0 comments on commit 6cd3142

Please sign in to comment.