Remove redundant decrement and return from cxoTransform_toPython (#423)

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
This commit is contained in:
Alex Henrie 2020-04-20 10:19:08 -06:00 committed by GitHub
parent af1281e535
commit bd9d7759b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -839,8 +839,6 @@ PyObject *cxoTransform_toPython(cxoTransformNum transformNum,
if (transformNum == CXO_TRANSFORM_INT &&
memchr(bytes->ptr, '.', bytes->length) == NULL) {
result = PyNumber_Long(stringObj);
Py_DECREF(stringObj);
return result;
} else if (transformNum == CXO_TRANSFORM_DECIMAL) {
result = PyObject_CallFunctionObjArgs(
(PyObject*) cxoPyTypeDecimal, stringObj, NULL);