From b31e93d59e7f2085e101fbfd09ec0045435672cc Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 24 Jul 2019 14:46:07 +0200 Subject: [PATCH] libobs: Supress clang-tidy warning clang-tidy-cert-flp30-c --- libobs/graphics/matrix4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/graphics/matrix4.c b/libobs/graphics/matrix4.c index a57bc07c7..b03c7d4f2 100644 --- a/libobs/graphics/matrix4.c +++ b/libobs/graphics/matrix4.c @@ -118,7 +118,7 @@ float matrix4_determinant(const struct matrix4 *m) float m3x3[9]; int n; - for (n = 0; n < 4; n++, i *= -1.0f) { + for (n = 0; n < 4; n++, i = -i) { // NOLINT(clang-tidy-cert-flp30-c) get_3x3_submatrix(m3x3, m, 0, n); det = get_3x3_determinant(m3x3);