We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
arange
1 parent d395740 commit 9cebec7Copy full SHA for 9cebec7
src/stdlib_math_arange.fypp
@@ -44,7 +44,7 @@ contains
44
step_ = optval(step, 1_${k1}$)
45
step_ = sign(merge(step_, 1_${k1}$, step_ /= 0_${k1}$), end_ - start_)
46
47
- allocate(result((end_ - start_)/step_ + 1))
+ allocate(result((end_ - start_)/step_ + 1_${k1}$))
48
49
result = [(i, i=start_, end_, step_)]
50
0 commit comments