[svn:parrot] r48802 - trunk/src/pmc
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Sun Sep 5 16:36:05 UTC 2010
Author: plobsing
Date: Sun Sep 5 16:36:05 2010
New Revision: 48802
URL: https://trac.parrot.org/parrot/changeset/48802
Log:
add casts to placate C++
Modified:
trunk/src/pmc/nativepccmethod.pmc
trunk/src/pmc/nci.pmc
Modified: trunk/src/pmc/nativepccmethod.pmc
==============================================================================
--- trunk/src/pmc/nativepccmethod.pmc Sun Sep 5 16:25:14 2010 (r48801)
+++ trunk/src/pmc/nativepccmethod.pmc Sun Sep 5 16:36:05 2010 (r48802)
@@ -113,7 +113,7 @@
EXCEPTION_INVALID_OPERATION,
"attempt to call NULL native function");
- fptr = D2FPTR(func);
+ fptr = (native_pcc_method_t)D2FPTR(func);
fptr(INTERP);
/*
Modified: trunk/src/pmc/nci.pmc
==============================================================================
--- trunk/src/pmc/nci.pmc Sun Sep 5 16:25:14 2010 (r48801)
+++ trunk/src/pmc/nci.pmc Sun Sep 5 16:36:05 2010 (r48802)
@@ -356,7 +356,7 @@
PMC *cont;
GET_ATTR_orig_func(INTERP, SELF, orig_func);
- func = D2FPTR(nci_info->func);
+ func = (nci_thunk_t)D2FPTR(nci_info->func);
GET_ATTR_fb_info(INTERP, SELF, fb_info);
More information about the parrot-commits
mailing list