diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-13 12:13:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-13 12:13:56 +0200 |
commit | 67897701316d83495aed4baa94e96c9f84b818f8 (patch) | |
tree | c359b956e15b2cd9f9f36fe72b3c3cbe2297cac7 /test | |
parent | 713e473b65963ec6ca1b1eb185c297852fa336ea (diff) |
a
Diffstat (limited to 'test')
-rw-r--r-- | test/json.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/json.cpp b/test/json.cpp index 31733101..97bece30 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -45,7 +45,8 @@ bool app::test_json() // NOLINT(readability-convert-member-functions-to-static) ret &= json_helper::to_json(v2i_2, output_dir/"vec2i_2.json"); } { - Magnum::Math::Vector3 vec{0.f/0, -1.f/0, 123.f}; + volatile float zero = 0; + Magnum::Math::Vector3 vec{0.f/zero, -1.f/zero, 123.f}; ret &= json_helper::to_json(vec, output_dir/"vec3_inf.json"); } { |