Skip to content

Commit 96ab932

Browse files
committed
Added iso_fortran_env types.
1 parent 375673a commit 96ab932

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/sqlite.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
! Licence: ISC
77
module sqlite
88
use, intrinsic :: iso_c_binding
9+
use, intrinsic :: iso_fortran_env, only: i8 => int64
910
use :: sqlite_util
1011
implicit none (type, external)
1112
private
@@ -649,7 +650,7 @@ function sqlite3_bind_text(stmt, idx, val, destructor)
649650
type(c_ptr), intent(inout) :: stmt
650651
integer, intent(in) :: idx
651652
character(len=*), intent(in) :: val
652-
integer(kind=8), intent(in), optional :: destructor
653+
integer(kind=i8), intent(in), optional :: destructor
653654
integer :: sqlite3_bind_text
654655

655656
if (present(destructor)) then

src/sqlite_util.f90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
! Licence: ISC
77
module sqlite_util
88
use, intrinsic :: iso_c_binding
9+
use, intrinsic :: iso_fortran_env, only: i8 => int64, r8 => real64
910
implicit none (type, external)
1011
private
1112

@@ -26,7 +27,7 @@ end function c_strlen
2627
pure function copy(a)
2728
character, intent(in) :: a(:)
2829
character(len=size(a)) :: copy
29-
integer(kind=8) :: i
30+
integer(kind=i8) :: i
3031

3132
do i = 1, size(a)
3233
copy(i:i) = a(i)
@@ -37,7 +38,7 @@ subroutine c_f_str_ptr(c_str, f_str)
3738
type(c_ptr), intent(in) :: c_str
3839
character(len=:), allocatable, intent(out) :: f_str
3940
character(kind=c_char), pointer :: ptrs(:)
40-
integer(kind=8) :: sz
41+
integer(kind=i8) :: sz
4142

4243
if (.not. c_associated(c_str)) return
4344
sz = c_strlen(c_str)

0 commit comments

Comments
 (0)