Skip to content

Commit f4c3594

Browse files
committed
Merge branch 'master' of https://github.com/jacobwilliams/json-fortran into 386-multiple-real-kinds
2 parents b76f1fe + 439a72f commit f4c3594

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
@@ -6002,7 +6002,7 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
60026002

60036003
! [one fewer tab if it isn't an array element]
60046004
if (.not. is_array) then
6005-
s = repeat(space, max(0,spaces-json%spaces_per_tab))//end_object
6005+
s = repeat(space, max(0_IK,spaces-json%spaces_per_tab))//end_object
60066006
else
60076007
s = s_indent//end_object
60086008
end if
@@ -6073,7 +6073,7 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
60736073

60746074
! recursive print of the element
60756075
if (is_vector) then
6076-
call json%json_value_print(element, iunit=iunit, indent=0,&
6076+
call json%json_value_print(element, iunit=iunit, indent=0_IK,&
60776077
need_comma=i<count, is_array_element=.false., &
60786078
str=str, iloc=iloc,&
60796079
is_compressed_vector = .true.)
@@ -6094,7 +6094,7 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
60946094
s = end_array
60956095
call write_it( comma=print_comma )
60966096
else
6097-
s = repeat(space, max(0,spaces-json%spaces_per_tab))//end_array
6097+
s = repeat(space, max(0_IK,spaces-json%spaces_per_tab))//end_array
60986098
call write_it( comma=print_comma )
60996099
end if
61006100
nullify(element)
@@ -9708,7 +9708,7 @@ subroutine annotate_invalid_json(json,iunit,str)
97089708
call integer_to_string(json%char_count, int_fmt, char_str)
97099709

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

97139713
if (json%line_count>0 .and. json%char_count>0) then
97149714

0 commit comments

Comments
 (0)