Remove redundant decrement and return from cxoTransform_toPython (#423)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
This commit is contained in:
parent
af1281e535
commit
bd9d7759b2
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user