diff options
Diffstat (limited to 'include/glm')
-rw-r--r-- | include/glm/detail/type_half.inl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/glm/detail/type_half.inl b/include/glm/detail/type_half.inl index b9f9f0e..23173d7 100644 --- a/include/glm/detail/type_half.inl +++ b/include/glm/detail/type_half.inl @@ -39,7 +39,8 @@ namespace detail { GLM_FUNC_QUALIFIER float overflow() { - volatile float f = 1e10; + // tcsullivan: Remove volatile for C++20 + /*volatile*/ float f = 1e10; for(int i = 0; i < 10; ++i) f *= f; // this will overflow before the for loop terminates |