Skip to content

Commit ce8c2d3

Browse files
committed
Fixed a few more non-default integer kind issues. See #365
1 parent 197d3e5 commit ce8c2d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/json_value_module.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6006,7 +6006,7 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
60066006
end if
60076007

60086008
! recursive print of the element
6009-
call json%json_value_print(element, iunit=iunit, indent=tab + 1, &
6009+
call json%json_value_print(element, iunit=iunit, indent=tab + 1_IK, &
60106010
need_comma=i<count, colon=.true., str=str, iloc=iloc)
60116011
if (json%exception_thrown) return
60126012

@@ -7072,7 +7072,7 @@ subroutine json_get_by_path_rfc6901(json, me, path, p, found)
70727072
end if
70737073
if (status_ok) then
70747074
! ival is an array index (0-based)
7075-
call json%get_child(p,ival+1,tmp,child_found)
7075+
call json%get_child(p,ival+1_IK,tmp,child_found)
70767076
if (child_found) then
70777077
p => tmp
70787078
else
@@ -7670,7 +7670,7 @@ subroutine json_get_path(json, p, path, found, use_alt_array_tokens, path_sep)
76707670
start_array//trim(adjustl(istr))//end_array,CK_'')
76717671
case(2_IK)
76727672
! rfc6901
7673-
call integer_to_string(i-1,int_fmt,istr) ! 0-based index
7673+
call integer_to_string(i-1_IK,int_fmt,istr) ! 0-based index
76747674
call add_to_path(parent_name//slash//trim(adjustl(istr)))
76757675
case(1_IK)
76767676
! default
@@ -9723,7 +9723,7 @@ subroutine annotate_invalid_json(json,iunit,str)
97239723
call integer_to_string(json%char_count, int_fmt, char_str)
97249724

97259725
!draw the arrow string that points to the current character:
9726-
arrow_str = repeat('-',max( 0_IK, json%char_count - 1) )//'^'
9726+
arrow_str = repeat('-',max( 0_IK, json%char_count - 1_IK) )//'^'
97279727

97289728
if (json%line_count>0 .and. json%char_count>0) then
97299729

0 commit comments

Comments
 (0)