Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix mistake caused by my previous commits, not sure why

  • Loading branch information...
commit 6cd3142b4e08d00df3b7283dbbfddc28a94876a6 1 parent 2275955
@NotFound NotFound authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/pmc/bkmarshal.c
View
4 src/pmc/bkmarshal.c
@@ -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));
}
Please sign in to comment.
Something went wrong with that request. Please try again.