Skip to content

Commit 626529f

Browse files
committed
xrlinear: clang-tidy
1 parent 5251bc2 commit 626529f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/common/xr_linear.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,8 @@ inline static bool XrMatrix4x4f_CullBounds(const XrMatrix4x4f* mvp, const XrVect
712712

713713
XrVector4f c[8];
714714
for (int i = 0; i < 8; i++) {
715-
const XrVector4f corner = {(i & 1) ? maxs->x : mins->x, (i & 2) ? maxs->y : mins->y, (i & 4) ? maxs->z : mins->z, 1.0f};
715+
const XrVector4f corner = {(i & 1) != 0 ? maxs->x : mins->x, (i & 2) != 0 ? maxs->y : mins->y,
716+
(i & 4) != 0 ? maxs->z : mins->z, 1.0f};
716717
XrMatrix4x4f_TransformVector4f(&c[i], mvp, &corner);
717718
}
718719

0 commit comments

Comments
 (0)