Commit c3e72d12 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Fixes

parent fab7f793
......@@ -3339,7 +3339,6 @@ template <ExceptionStyle S>
static Box* tppProxyToTpCall(Box* self, CallRewriteArgs* rewrite_args, ArgPassSpec argspec, Box* arg1, Box* arg2,
Box* arg3, Box** args,
const std::vector<BoxedString*>* keyword_names) noexcept(S == CAPI) {
assert(0 && "check refcounting");
ParamReceiveSpec paramspec(0, 0, true, true);
if (!argspec.has_kwargs && argspec.num_keywords == 0) {
paramspec.takes_kwargs = false;
......
......@@ -3063,7 +3063,6 @@ extern "C" bool nonzero(Box* obj) {
}
if (crewrite_args.isSuccessful()) {
assert(0 && "untested");
RewriterVar* rtn = crewrite_args.getReturn(ReturnConvention::HAS_RETURN);
RewriterVar* b = rewriter->call(false, (void*)nonzeroHelper, rtn);
rtn->refConsumed();
......
......@@ -48,7 +48,6 @@ public:
static void dealloc(BoxedSetIterator* o) noexcept {
PyObject_GC_UnTrack(o);
PyObject_ClearWeakRefs((PyObject*)o);
Py_DECREF(o->s);
......@@ -183,7 +182,7 @@ Box* setNew(Box* _cls, Box* container, BoxedDict* kwargs) {
}
static void setClearInternal(BoxedSet* self) {
ASSERT(isSubclass(self->cls, set_cls), "");
ASSERT(PyAnySet_Check(self), "");
if (self->s.size()) {
BoxedSet::Set tmp;
......
......@@ -3158,7 +3158,7 @@ static Box* typeBases(Box* b, void*) {
BoxedClass* type = static_cast<BoxedClass*>(b);
assert(type->tp_bases);
return type->tp_bases;
return incref(type->tp_bases);
}
static void typeSetBases(Box* b, Box* v, void* c) {
......
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