Skip to content

Commit 0a6b907

Browse files
committed
set ilp64 to an invalid kind if not enabled
1 parent d40e088 commit 0a6b907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stdlib_linalg_constants.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ module stdlib_linalg_constants
2929
logical(lk), parameter :: external_lapack_ilp64 = .false._lk
3030
#endif
3131

32-
! Generic checks
32+
! Generic checks for external libraries
3333
logical(lk), parameter :: external_blas = external_blas_ilp32 .or. external_blas_ilp64
3434
logical(lk), parameter :: external_lapack = external_lapack_ilp32 .or. external_lapack_ilp64
3535

3636
! Support both 32-bit (ilp) and 64-bit (ilp64) integer kinds
3737
integer, parameter :: ilp = int32
38-
integer, parameter :: ilp64 = int64
38+
integer, parameter :: ilp64 = #{if WITH_ILP64}# int64 #{else}# -1 #{endif}#
3939
private :: int32, int64
4040

4141
end module stdlib_linalg_constants

0 commit comments

Comments
 (0)