Skip to content

Commit 4b5fc94

Browse files
authored
Merge pull request #26120 from QuLogic/fix-warnings
2 parents d50bca8 + 48cfd1c commit 4b5fc94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/py_converters.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ int convert_points(PyObject *obj, void *pointsp)
511511
return 1;
512512
}
513513
if (!points->set(obj)
514-
|| points->size() && !check_trailing_shape(*points, "points", 2)) {
514+
|| (points->size() && !check_trailing_shape(*points, "points", 2))) {
515515
return 0;
516516
}
517517
return 1;
@@ -524,7 +524,7 @@ int convert_transforms(PyObject *obj, void *transp)
524524
return 1;
525525
}
526526
if (!trans->set(obj)
527-
|| trans->size() && !check_trailing_shape(*trans, "transforms", 3, 3)) {
527+
|| (trans->size() && !check_trailing_shape(*trans, "transforms", 3, 3))) {
528528
return 0;
529529
}
530530
return 1;
@@ -537,7 +537,7 @@ int convert_bboxes(PyObject *obj, void *bboxp)
537537
return 1;
538538
}
539539
if (!bbox->set(obj)
540-
|| bbox->size() && !check_trailing_shape(*bbox, "bbox array", 2, 2)) {
540+
|| (bbox->size() && !check_trailing_shape(*bbox, "bbox array", 2, 2))) {
541541
return 0;
542542
}
543543
return 1;
@@ -550,7 +550,7 @@ int convert_colors(PyObject *obj, void *colorsp)
550550
return 1;
551551
}
552552
if (!colors->set(obj)
553-
|| colors->size() && !check_trailing_shape(*colors, "colors", 4)) {
553+
|| (colors->size() && !check_trailing_shape(*colors, "colors", 4))) {
554554
return 0;
555555
}
556556
return 1;

0 commit comments

Comments
 (0)