Skip to content

Commit d9abc9d

Browse files
committed
Fix small bug in compact_real_string
- Non exponent floats were not be propperly treated when they were not signed
1 parent 943a5df commit d9abc9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/json_module.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8042,7 +8042,7 @@ subroutine compact_real_string(str)
80428042
decimal_pos = scan(str,CK_'.')
80438043
if (exp_start /= 0) separator = str(exp_start:exp_start)
80448044

8045-
if (exp_start > 0 .and. exp_start < decimal_pos) then !signed, exponent-less float
8045+
if ( exp_start < decimal_pos ) then !possibly signed, exponent-less float
80468046

80478047
significand = str
80488048
sig_trim = len(trim(significand))

0 commit comments

Comments
 (0)