Skip to content

Commit 1d245fa

Browse files
author
Stefan Krah
committed
Merge 3.5.
2 parents 8113f49 + 947f099 commit 1d245fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_decimal/_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2636,7 +2636,7 @@ dec_from_float(PyObject *type, PyObject *pyfloat)
26362636

26372637
CURRENT_CONTEXT(context);
26382638
result = PyDecType_FromFloatExact(&PyDec_Type, pyfloat, context);
2639-
if (!PyDec_CheckExact(type) && result != NULL) {
2639+
if (type != (PyObject *)&PyDec_Type && result != NULL) {
26402640
Py_SETREF(result, PyObject_CallFunctionObjArgs(type, result, NULL));
26412641
}
26422642

0 commit comments

Comments
 (0)