@@ -5521,7 +5521,7 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
5521
5521
5522
5522
! [one fewer tab if it isn't an array element]
5523
5523
if (.not. is_array) then
5524
- s = repeat (space, max (0 ,spaces- json% spaces_per_tab))// end_object
5524
+ s = repeat (space, max (0_IK ,spaces- json% spaces_per_tab))// end_object
5525
5525
else
5526
5526
s = s_indent// end_object
5527
5527
end if
@@ -5592,7 +5592,7 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
5592
5592
5593
5593
! recursive print of the element
5594
5594
if (is_vector) then
5595
- call json% json_value_print(element, iunit= iunit, indent= 0 ,&
5595
+ call json% json_value_print(element, iunit= iunit, indent= 0_IK ,&
5596
5596
need_comma= i< count, is_array_element= .false. , &
5597
5597
str= str, iloc= iloc,&
5598
5598
is_compressed_vector = .true. )
@@ -5613,7 +5613,7 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
5613
5613
s = end_array
5614
5614
call write_it( comma= print_comma )
5615
5615
else
5616
- s = repeat (space, max (0 ,spaces- json% spaces_per_tab))// end_array
5616
+ s = repeat (space, max (0_IK ,spaces- json% spaces_per_tab))// end_array
5617
5617
call write_it( comma= print_comma )
5618
5618
end if
5619
5619
nullify(element)
@@ -8979,7 +8979,7 @@ subroutine annotate_invalid_json(json,iunit,str)
8979
8979
call integer_to_string(json% char_count, int_fmt, char_str)
8980
8980
8981
8981
! draw the arrow string that points to the current character:
8982
- arrow_str = repeat (' -' ,max ( 0 , json% char_count - 1 ) )// ' ^'
8982
+ arrow_str = repeat (' -' ,max ( 0_IK , json% char_count - 1 ) )// ' ^'
8983
8983
8984
8984
if (json% line_count> 0 .and. json% char_count> 0 ) then
8985
8985
0 commit comments