Merge 3.5.

This commit is contained in:
Stefan Krah 2016-06-20 14:13:12 +02:00
commit 1d245fabaf
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}