Skip to content

Commit 7e37b1e

Browse files
committed
Fixed an issue where the char_count wasn’t always correct, which caused the error message for invalid JSON to be wrong.
1 parent a64a28e commit 7e37b1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/json_value_module.F90

+3
Original file line numberDiff line numberDiff line change
@@ -8899,6 +8899,9 @@ subroutine push_char(json,c)
88998899

89008900
end if
89018901

8902+
!character count in the current line
8903+
json%char_count = json%char_count - 1
8904+
89028905
end if
89038906

89048907
end subroutine push_char

0 commit comments

Comments
 (0)