Skip to content

Commit 1ab49df

Browse files
committed
Harmless but wrong boolean operator
Warning by clang on macos
1 parent c336a62 commit 1ab49df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4634,7 +4634,7 @@ Connection_exit(PyObject *self_, PyObject *const *fast_args, Py_ssize_t fast_nar
46344634
{
46354635
res = OK;
46364636
int i_did_commit = 0;
4637-
if (Py_IsNone(etype) || Py_IsNone(evalue) && Py_IsNone(etraceback))
4637+
if (Py_IsNone(etype) && Py_IsNone(evalue) && Py_IsNone(etraceback))
46384638
{
46394639
res = connection_context_manager_exec(self, "COMMIT", 0, 0);
46404640
i_did_commit = 1;

0 commit comments

Comments
 (0)