Skip to content

Commit e878644

Browse files
committed
remove redundant condition inside codegen_addop_load_const
1 parent 71ae933 commit e878644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/codegen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ codegen_addop_load_const(compiler *c, location loc, PyObject *o)
284284
if (PyLong_CheckExact(o)) {
285285
int overflow;
286286
long val = PyLong_AsLongAndOverflow(o, &overflow);
287-
if (!overflow && val >= 0 && val < 256 && val < _PY_NSMALLPOSINTS) {
287+
if (!overflow && val >= 0 && val < 256) {
288288
ADDOP_I(c, loc, LOAD_SMALL_INT, val);
289289
return SUCCESS;
290290
}

0 commit comments

Comments
 (0)