Skip to content

Commit 4d53788

Browse files
committed
trivial mod.
1 parent 947d576 commit 4d53788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/json_value_module.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5281,7 +5281,7 @@ subroutine json_value_to_string(json,p,str)
52815281
!! since it is being allocated in chunks.
52825282

52835283
str = repeat(space, print_str_chunk_size)
5284-
iloc = 0
5284+
iloc = 0_IK
52855285
call json%json_value_print(p, iunit=unit2str, str=str, iloc=iloc, indent=1_IK, colon=.true.)
52865286

52875287
! trim the string if necessary:
@@ -5311,7 +5311,7 @@ subroutine json_print_to_unit(json,p,iunit)
53115311
!! to [[json_value_print]]
53125312

53135313
if (iunit/=unit2str) then
5314-
idummy = 1_IK
5314+
idummy = 0_IK
53155315
call json%json_value_print(p,iunit,str=dummy,iloc=idummy,indent=1_IK,colon=.true.)
53165316
else
53175317
call json%throw_exception('Error in json_print_to_unit: iunit must not be -1.')

0 commit comments

Comments
 (0)