Skip to content

Commit 9cebec7

Browse files
committed
Fix a warning in arange and avoid type conversion.
1 parent d395740 commit 9cebec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib_math_arange.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ contains
4444
step_ = optval(step, 1_${k1}$)
4545
step_ = sign(merge(step_, 1_${k1}$, step_ /= 0_${k1}$), end_ - start_)
4646

47-
allocate(result((end_ - start_)/step_ + 1))
47+
allocate(result((end_ - start_)/step_ + 1_${k1}$))
4848

4949
result = [(i, i=start_, end_, step_)]
5050

0 commit comments

Comments
 (0)