From b8ae96663491a513c08eace46858c60f27722b0e Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Sat, 10 Apr 2021 04:37:07 +0200 Subject: [PATCH] [CRT] exp2*.c: Add an explicit type for 'TWO' variable Addendum to 199adee. --- sdk/lib/crt/math/exp2.c | 2 +- sdk/lib/crt/math/exp2f.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/crt/math/exp2.c b/sdk/lib/crt/math/exp2.c index e843be9fffd..84f02e29c1c 100644 --- a/sdk/lib/crt/math/exp2.c +++ b/sdk/lib/crt/math/exp2.c @@ -8,6 +8,6 @@ exp2( _In_ double x) { /* This below avoids clang to optimize our pow call to exp2 */ - static const TWO = 2.0; + static const double TWO = 2.0; return pow(TWO, x); } diff --git a/sdk/lib/crt/math/exp2f.c b/sdk/lib/crt/math/exp2f.c index 292308ae521..818a28bb2f1 100644 --- a/sdk/lib/crt/math/exp2f.c +++ b/sdk/lib/crt/math/exp2f.c @@ -8,6 +8,6 @@ exp2f( _In_ float x) { /* This below avoids clang to optimize our pow call to exp2 */ - static const TWO = 2.0f; + static const float TWO = 2.0f; return powf(TWO, x); }