Skip to content

Commit

Permalink
Fix use of native_pcc_method_t
Browse files Browse the repository at this point in the history
Native pcc methods always take two arguments, INTERP and SELF, so they
must be called with two arguments.
  • Loading branch information
andreas-schwab authored and Reini Urban committed Mar 2, 2014
1 parent 40badac commit 3437a63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/parrot/nci.h
Expand Up @@ -15,7 +15,7 @@

typedef PMC *(*nci_fb_func_t)(PARROT_INTERP, PMC *user_data, PMC *signature);
typedef void (*nci_thunk_t)(PARROT_INTERP, PMC *, PMC *);
typedef void (*native_pcc_method_t)(PARROT_INTERP);
typedef void (*native_pcc_method_t)(PARROT_INTERP, PMC *);

void Parrot_nci_load_core_thunks(PARROT_INTERP);
void Parrot_nci_load_extra_thunks(PARROT_INTERP);
Expand Down
2 changes: 1 addition & 1 deletion src/pmc/nativepccmethod.pmc
Expand Up @@ -117,7 +117,7 @@ Call the function pointer.
"attempt to call NULL native function");

fptr = (native_pcc_method_t)D2FPTR(func);
fptr(INTERP);
fptr(INTERP, SELF);

/*
* If this function was tailcalled, the return result
Expand Down

0 comments on commit 3437a63

Please sign in to comment.