summaryrefslogtreecommitdiff
path: root/main/tests/test_math.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-05-26 13:39:53 +0200
committerGitHub <noreply@github.com>2020-05-26 13:39:53 +0200
commitf8005cb699123bf6b04ab7abd381036ee19f36e4 (patch)
tree9a6c96b85a5079815a71e474140da884d17b8e01 /main/tests/test_math.cpp
parentda73cd57565180f313996a3218bd60be113d829f (diff)
parent8879625879f1f7a5bde0eaf770b1476705f8d334 (diff)
Merge pull request #28289 from aaronfranke/grid
Dynamic infinite 3D grid
Diffstat (limited to 'main/tests/test_math.cpp')
-rw-r--r--main/tests/test_math.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/tests/test_math.cpp b/main/tests/test_math.cpp
index 11aa164709..9e159798bb 100644
--- a/main/tests/test_math.cpp
+++ b/main/tests/test_math.cpp
@@ -482,7 +482,7 @@ MainLoop *test() {
float gb = (rgbe >> 9) & 0x1ff;
float bb = (rgbe >> 18) & 0x1ff;
float eb = (rgbe >> 27);
- float mb = Math::pow(2, eb - 15.0 - 9.0);
+ float mb = Math::pow(2.0, eb - 15.0 - 9.0);
float rd = rb * mb;
float gd = gb * mb;
float bd = bb * mb;