Skip to content

Commit 4dcaa4f

Browse files
use sym_is_not_null
1 parent a0bf9b8 commit 4dcaa4f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

Python/optimizer_bytecodes.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,11 +1323,11 @@ dummy_func(void) {
13231323
PyObject *callable_o = sym_get_const(ctx, callable);
13241324
if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type)) {
13251325
int total_args = oparg;
1326-
if (!sym_is_null(self_or_null)) {
1326+
if (sym_is_not_null(self_or_null)) {
13271327
total_args++;
13281328
}
13291329
PyTypeObject *self_type = NULL;
1330-
if (!sym_is_null(self_or_null)) {
1330+
if (sym_is_not_null(self_or_null)) {
13311331
self_type = sym_get_type(self_or_null);
13321332
}
13331333
else {
@@ -1349,11 +1349,11 @@ dummy_func(void) {
13491349
PyObject *callable_o = sym_get_const(ctx, callable);
13501350
if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type)) {
13511351
int total_args = oparg;
1352-
if (!sym_is_null(self_or_null)) {
1352+
if (sym_is_not_null(self_or_null)) {
13531353
total_args++;
13541354
}
13551355
PyTypeObject *self_type = NULL;
1356-
if (!sym_is_null(self_or_null)) {
1356+
if (sym_is_not_null(self_or_null)) {
13571357
self_type = sym_get_type(self_or_null);
13581358
}
13591359
else {
@@ -1375,11 +1375,11 @@ dummy_func(void) {
13751375
PyObject *callable_o = sym_get_const(ctx, callable);
13761376
if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type)) {
13771377
int total_args = oparg;
1378-
if (!sym_is_null(self_or_null)) {
1378+
if (sym_is_not_null(self_or_null)) {
13791379
total_args++;
13801380
}
13811381
PyTypeObject *self_type = NULL;
1382-
if (!sym_is_null(self_or_null)) {
1382+
if (sym_is_not_null(self_or_null)) {
13831383
self_type = sym_get_type(self_or_null);
13841384
}
13851385
else {
@@ -1434,11 +1434,11 @@ dummy_func(void) {
14341434
PyObject *callable_o = sym_get_const(ctx, callable);
14351435
if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type)) {
14361436
int total_args = oparg;
1437-
if (!sym_is_null(self_or_null)) {
1437+
if (sym_is_not_null(self_or_null)) {
14381438
total_args++;
14391439
}
14401440
PyTypeObject *self_type = NULL;
1441-
if (!sym_is_null(self_or_null)) {
1441+
if (sym_is_not_null(self_or_null)) {
14421442
self_type = sym_get_type(self_or_null);
14431443
}
14441444
else {

Python/optimizer_cases.c.h

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)