Commit 2f702c0a authored by Kevin Modzelewski's avatar Kevin Modzelewski

Missed incref

parent 1077e8c7
...@@ -920,7 +920,7 @@ Box* floatNonzero(BoxedFloat* self) { ...@@ -920,7 +920,7 @@ Box* floatNonzero(BoxedFloat* self) {
template <ExceptionStyle S> static BoxedFloat* _floatNew(Box* a) noexcept(S == CAPI) { template <ExceptionStyle S> static BoxedFloat* _floatNew(Box* a) noexcept(S == CAPI) {
if (a->cls == float_cls) { if (a->cls == float_cls) {
return static_cast<BoxedFloat*>(a); return static_cast<BoxedFloat*>(incref(a));
} else if (PyInt_Check(a)) { } else if (PyInt_Check(a)) {
return new BoxedFloat(static_cast<BoxedInt*>(a)->n); return new BoxedFloat(static_cast<BoxedInt*>(a)->n);
......
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