Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c219d55

Browse files
committed
Rich comparisons: ensure that LT == Py_LT, etc.
1 parent 5f284ce commit c219d55

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Include/opcode.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ extern "C" {
135135
#define EXTENDED_ARG 143
136136

137137
/* Comparison operator codes (argument to COMPARE_OP) */
138-
enum cmp_op {LT, LE, EQ, NE, GT, GE, IN, NOT_IN, IS, IS_NOT, EXC_MATCH, BAD};
138+
enum cmp_op {LT=Py_LT, LE=Py_LE, EQ=Py_EQ, NE=Py_NE, GT=Py_GT, GE=Py_GE,
139+
IN, NOT_IN, IS, IS_NOT, EXC_MATCH, BAD};
139140

140141
#define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
141142

0 commit comments

Comments
 (0)