Open
Description
Description
During a development, I found an unexpected situation: swapping optval(s, si)
in the stdlib_random
for if (present(s)) then ..
form, and unit tests of macos
and ubuntu
systems failed.
- The first commit: zoziha@92a1949 (CI passed✅)
- The next commit: zoziha@d1a37eb (CI failed❌)
(see https://github.com/zoziha/stdlib/commits/update_random)
Possible Problem
Line 123 in 100f760
Maybe:
res = res + int01 !?
Expected Behaviour
CI failed: https://github.com/zoziha/stdlib/actions/runs/1554566528
Expected behaviour: optval
== if (present(..)) then ..
Version of stdlib
Platform and Architecture
MacOS, GFortran 9 10 11; Ubuntu, GFortran 10
Additional Information
No response