Skip to content

Commit d8e6a25

Browse files
authored
Update with SWIG XL compiler fix (#17)
1 parent 17cba35 commit d8e6a25

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/flc.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ subroutine SWIGTM_fout_char_Sm_(imout, fout)
7878
character(kind=C_CHAR), dimension(:), pointer :: chars
7979
integer(kind=C_SIZE_T) :: i
8080
call c_f_pointer(imout%data, chars, [imout%size])
81-
allocate(character(kind=C_CHAR, len=imout%size) :: fout)
81+
allocate(character(len=imout%size) :: fout)
8282
do i=1, imout%size
8383
fout(i:i) = char(ichar(chars(i)))
8484
end do

src/flc_string.f90

+3-3
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ function swigf_string_size(self) &
438438

439439
subroutine SWIGTM_fout_bool(imout, fout)
440440
use, intrinsic :: ISO_C_BINDING
441-
integer(kind=C_INT), intent(IN) :: imout
442-
logical, intent(OUT) :: fout
441+
integer(kind=C_INT), intent(in) :: imout
442+
logical, intent(out) :: fout
443443
! TODO: fout = (imout /= 0) ???
444444
if (imout /= 0) then
445445
fout = .true.
@@ -686,7 +686,7 @@ subroutine SWIGTM_fout_char_Sm_(imout, fout)
686686
character(kind=C_CHAR), dimension(:), pointer :: chars
687687
integer(kind=C_SIZE_T) :: i
688688
call c_f_pointer(imout%data, chars, [imout%size])
689-
allocate(character(kind=C_CHAR, len=imout%size) :: fout)
689+
allocate(character(len=imout%size) :: fout)
690690
do i=1, imout%size
691691
fout(i:i) = char(ichar(chars(i)))
692692
end do

src/flc_vector.f90

+3-3
Original file line numberDiff line numberDiff line change
@@ -1234,8 +1234,8 @@ function swigf_VectorInt4_capacity(self) &
12341234

12351235
subroutine SWIGTM_fout_bool(imout, fout)
12361236
use, intrinsic :: ISO_C_BINDING
1237-
integer(kind=C_INT), intent(IN) :: imout
1238-
logical, intent(OUT) :: fout
1237+
integer(kind=C_INT), intent(in) :: imout
1238+
logical, intent(out) :: fout
12391239
! TODO: fout = (imout /= 0) ???
12401240
if (imout /= 0) then
12411241
fout = .true.
@@ -2463,7 +2463,7 @@ subroutine SWIGTM_fout_char_Sm_(imout, fout)
24632463
character(kind=C_CHAR), dimension(:), pointer :: chars
24642464
integer(kind=C_SIZE_T) :: i
24652465
call c_f_pointer(imout%data, chars, [imout%size])
2466-
allocate(character(kind=C_CHAR, len=imout%size) :: fout)
2466+
allocate(character(len=imout%size) :: fout)
24672467
do i=1, imout%size
24682468
fout(i:i) = char(ichar(chars(i)))
24692469
end do

0 commit comments

Comments
 (0)