Skip to content

Commit

Permalink
Merge 3.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
skrah committed Jun 20, 2016
2 parents 8113f49 + 947f099 commit 1d245fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_decimal/_decimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,7 @@ dec_from_float(PyObject *type, PyObject *pyfloat)

CURRENT_CONTEXT(context);
result = PyDecType_FromFloatExact(&PyDec_Type, pyfloat, context);
if (!PyDec_CheckExact(type) && result != NULL) {
if (type != (PyObject *)&PyDec_Type && result != NULL) {
Py_SETREF(result, PyObject_CallFunctionObjArgs(type, result, NULL));
}

Expand Down

0 comments on commit 1d245fa

Please sign in to comment.