Commit 5a6a15cf authored by Kevin Modzelewski's avatar Kevin Modzelewski

Allow capi calls through typecallinner

note: people need to `find -name '*.pyston.so' -delete`, since although
I think we correctly know to try to rebuild the sharedmodules,
distutils won't end up rebuilding it.
parent 324397a3
...@@ -960,7 +960,7 @@ static Box* _intNew(Box* val, Box* base) { ...@@ -960,7 +960,7 @@ static Box* _intNew(Box* val, Box* base) {
raiseExcHelper(TypeError, ""); raiseExcHelper(TypeError, "");
} }
if (!isSubclass(r->cls, int_cls) && !isSubclass(r->cls, long_cls)) { if (!PyInt_Check(r) && !PyLong_Check(r)) {
raiseExcHelper(TypeError, "__int__ returned non-int (type %s)", r->cls->tp_name); raiseExcHelper(TypeError, "__int__ returned non-int (type %s)", r->cls->tp_name);
} }
return r; return r;
......
This diff is collapsed.
...@@ -1007,7 +1007,6 @@ public: ...@@ -1007,7 +1007,6 @@ public:
static void gcHandler(GCVisitor* v, Box* _o); static void gcHandler(GCVisitor* v, Box* _o);
}; };
Box* objectNewNoArgs(BoxedClass* cls);
Box* objectSetattr(Box* obj, Box* attr, Box* value); Box* objectSetattr(Box* obj, Box* attr, Box* value);
Box* unwrapAttrWrapper(Box* b); Box* unwrapAttrWrapper(Box* b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment