Skip to content

Commit

Permalink
Fix mistake caused by my previous commits, not sure why
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound authored and jnthn committed Sep 11, 2010
1 parent 2275955 commit 489e3c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pmc/bkmarshal.c
Expand Up @@ -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));
}
Expand Down

0 comments on commit 489e3c7

Please sign in to comment.