Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: scoder <[email protected]>
  • Loading branch information
lysnikolaou and scoder authored Aug 5, 2024
1 parent e94c168 commit 29132a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cython/Compiler/ExprNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3130,6 +3130,7 @@ def generate_next_sequence_item(self, test_name, result_name, code):
f"{result_name} = {getitem}({self.py_result()}, {self.counter_cname}); "
f"{incref}({result_name}); "
f"{self.counter_cname}{inc_dec}; "
# Use the error label to avoid C compiler warnings if we only use it below.
f"{code.error_goto_if_neg('0', self.pos)}")
code.putln("#else")
code.putln(
Expand Down
2 changes: 1 addition & 1 deletion Cython/Utility/ModuleSetupCode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict,
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i))
#else
#define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GetItem(o, i))
#define __Pyx_PyList_GetItemRef(o, i) PySequence_GetItem(o, i)
#endif

static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
Expand Down

0 comments on commit 29132a6

Please sign in to comment.