From df618e861e3777f84e2e57d9c91932c44995aa85 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 3 Aug 2019 19:49:07 -0700 Subject: [PATCH] Run through Clang's performance-type-promotion-in-math-fn Only changed log2 to log2f. Rightly so. --- src/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.c b/src/shared.c index 67134ef25..7c0a67391 100644 --- a/src/shared.c +++ b/src/shared.c @@ -794,7 +794,7 @@ float get_entropy (const u8 *buf, const int len) float w = (float) r / len; - entropy += -w * log2 (w); + entropy += -w * log2f (w); } return entropy;