diff --git a/src/stdlib_linalg_least_squares.fypp b/src/stdlib_linalg_least_squares.fypp index 65c7c0b9f..ccb885319 100644 --- a/src/stdlib_linalg_least_squares.fypp +++ b/src/stdlib_linalg_least_squares.fypp @@ -305,7 +305,7 @@ submodule (stdlib_linalg) stdlib_linalg_least_squares else allocate(cwork(lcwork)) endif - ncs = size(iwork,kind=ilp) + ncs = size(cwork,kind=ilp) #:endif if (nrs