@@ -6006,7 +6006,7 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
6006
6006
end if
6007
6007
6008
6008
! 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 , &
6010
6010
need_comma= i< count, colon= .true. , str= str, iloc= iloc)
6011
6011
if (json% exception_thrown) return
6012
6012
@@ -7072,7 +7072,7 @@ subroutine json_get_by_path_rfc6901(json, me, path, p, found)
7072
7072
end if
7073
7073
if (status_ok) then
7074
7074
! 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)
7076
7076
if (child_found) then
7077
7077
p = > tmp
7078
7078
else
@@ -7670,7 +7670,7 @@ subroutine json_get_path(json, p, path, found, use_alt_array_tokens, path_sep)
7670
7670
start_array// trim (adjustl (istr))// end_array,CK_' ' )
7671
7671
case (2_IK )
7672
7672
! 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
7674
7674
call add_to_path(parent_name// slash// trim (adjustl (istr)))
7675
7675
case (1_IK )
7676
7676
! default
@@ -9723,7 +9723,7 @@ subroutine annotate_invalid_json(json,iunit,str)
9723
9723
call integer_to_string(json% char_count, int_fmt, char_str)
9724
9724
9725
9725
! 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 ) )// ' ^'
9727
9727
9728
9728
if (json% line_count> 0 .and. json% char_count> 0 ) then
9729
9729
0 commit comments