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

Skip to content

Commit a5ca2e7

Browse files
committed
Remove 'extern' declaration for _Py_SwappedOp.
1 parent 2dc8205 commit a5ca2e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ adjust_tp_compare(int c)
476476
? (t)->tp_richcompare : NULL)
477477

478478
/* Map rich comparison operators to their swapped version, e.g. LT --> GT */
479-
extern int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
479+
int _Py_SwappedOp[] = {Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE};
480480

481481
/* Try a genuine rich comparison, returning an object. Return:
482482
NULL for exception;

0 commit comments

Comments
 (0)