Skip to content

Commit

Permalink
Fix volatile build warning on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper authored Jul 29, 2024
1 parent 3f375e3 commit bc69d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dependencies/glm/glm/detail/type_half.inl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace detail
volatile float f = 1e10;

for(int i = 0; i < 10; ++i)
f *= f; // this will overflow before the for loop terminates
f = f * f; // this will overflow before the for loop terminates
return f;
}

Expand Down

0 comments on commit bc69d13

Please sign in to comment.