Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bd9d775

Browse filesBrowse files
authored
Remove redundant decrement and return from cxoTransform_toPython (#423)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
1 parent af1281e commit bd9d775
Copy full SHA for bd9d775

File tree

Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed

‎src/cxoTransform.c

Copy file name to clipboardExpand all lines: src/cxoTransform.c
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,6 @@ PyObject *cxoTransform_toPython(cxoTransformNum transformNum,
839839
if (transformNum == CXO_TRANSFORM_INT &&
840840
memchr(bytes->ptr, '.', bytes->length) == NULL) {
841841
result = PyNumber_Long(stringObj);
842-
Py_DECREF(stringObj);
843-
return result;
844842
} else if (transformNum == CXO_TRANSFORM_DECIMAL) {
845843
result = PyObject_CallFunctionObjArgs(
846844
(PyObject*) cxoPyTypeDecimal, stringObj, NULL);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.