https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b8ae96663491a513c08eace46858c60f27722b0e

commit b8ae96663491a513c08eace46858c60f27722b0e
Author:     Serge Gautherie <[email protected]>
AuthorDate: Sat Apr 10 04:37:07 2021 +0200
Commit:     Stanislav Motylkov <[email protected]>
CommitDate: Tue Apr 27 10:36:54 2021 +0300

    [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);
 }

Reply via email to