Kaydet (Commit) 1d245fab authored tarafından Stefan Krah's avatar Stefan Krah

Merge 3.5.

...@@ -2636,7 +2636,7 @@ dec_from_float(PyObject *type, PyObject *pyfloat) ...@@ -2636,7 +2636,7 @@ dec_from_float(PyObject *type, PyObject *pyfloat)
CURRENT_CONTEXT(context); CURRENT_CONTEXT(context);
result = PyDecType_FromFloatExact(&PyDec_Type, pyfloat, 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)); Py_SETREF(result, PyObject_CallFunctionObjArgs(type, result, NULL));
} }
......
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