From b528b87cc800a18d53bc6ddb070df6658e7130f3 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Fri, 11 Aug 2023 00:50:57 +0300 Subject: [PATCH] kernel: address some clang-tidy issues --- src/kernel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel.c b/src/kernel.c index cbb5cd12..b5e1a487 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -54,8 +54,9 @@ static inline double attr_const gaussian(double r, double x, double y) { // Formula can be found here: // https://en.wikipedia.org/wiki/Gaussian_blur#Mathematics // Except a special case for r == 0 to produce sharp shadows - if (r == 0) + if (r == 0) { return 1; + } return exp(-0.5 * (x * x + y * y) / (r * r)) / (2 * M_PI * r * r); }