Skip to content

Commit a18f026

Browse files
committed
conflict resolution
1 parent 9e1e02b commit a18f026

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ install:
5050
- sudo ln -fs /usr/bin/gcov-4.9 /usr/bin/gcov && gcov --version
5151
- if [[ $FoBiS == [yY]* ]]; then sudo -H pip install FoBiS.py && FoBiS.py --version; fi
5252
- if [[ $DOCS == [yY]* ]]; then sudo -H pip install ford && ford --version; fi
53-
- if [[ $CHECK_README_PROGS == [yY]* ]]; then gfortran -o f90split f90split.f90 && ./f90split README.md && for f in example*.md; do mv $f src/tests/jf_test_${f%.md}.f90; done; rm f90split.f90 f90split; fi
53+
- if [[ $CHECK_README_PROGS == [yY]* ]]; then gfortran -o f90split f90split.f90 && ./f90split README.md && shopt -s extglob && for f in !(README|CONTRIBUTING|CHANGELOG).md; do mv $f src/tests/jf_test_${f%.md}.f90; done; rm f90split.f90 f90split; fi
5454

5555
script:
5656
- echo $BUILD_SCRIPT

src/json_module.F90

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
!
4040
! **json-fortran License:**
4141
!
42-
! JSON-FORTRAN: A Fortran 2008 JSON API
42+
! JSON-Fortran: A Fortran 2008 JSON API
4343
!
4444
! http://github.com/jacobwilliams/json-fortran
4545
!
@@ -844,8 +844,8 @@ end subroutine array_callback_func
844844
!6 = sign + leading 0 + decimal + 'E' + exponent sign + 1 extra
845845
integer(IK),parameter :: max_numeric_str_len = real_precision + real_exponent_digits + 6
846846
! real format set by library initialization
847-
character(kind=CDK,len=*),parameter :: int_fmt = '(I0)' !minimum width format for integers
848-
character(kind=CK, len=*),parameter :: star = '*' !for invalid numbers
847+
character(kind=CDK,len=*),parameter :: int_fmt = '(ss,I0)' !minimum width format for integers
848+
character(kind=CK, len=*),parameter :: star = '*' !for invalid numbers
849849

850850
!real string printing:
851851
character(kind=CDK,len=:),allocatable :: real_fmt !the format string to use for real numbers
@@ -1588,13 +1588,13 @@ subroutine json_initialize(verbose,compact_reals)
15881588
! set the default output/input format for reals:
15891589
! [this only needs to be done once, since it can't change]
15901590
if (.not. allocated(real_fmt)) then
1591-
write(w,'(I0)',iostat=istat) max_numeric_str_len
1592-
if (istat==0) write(d,'(I0)',iostat=istat) real_precision
1593-
if (istat==0) write(e,'(I0)',iostat=istat) real_exponent_digits
1591+
write(w,'(ss,I0)',iostat=istat) max_numeric_str_len
1592+
if (istat==0) write(d,'(ss,I0)',iostat=istat) real_precision
1593+
if (istat==0) write(e,'(ss,I0)',iostat=istat) real_exponent_digits
15941594
if (istat==0) then
1595-
real_fmt = '(E' // trim(w) // '.' // trim(d) // 'E' // trim(e) // ')'
1595+
real_fmt = '(ss,E' // trim(w) // '.' // trim(d) // 'E' // trim(e) // ')'
15961596
else
1597-
real_fmt = '(E30.16E3)' !just use this one (should never happen)
1597+
real_fmt = '(ss,E30.16E3)' !just use this one (should never happen)
15981598
end if
15991599
end if
16001600

@@ -1644,7 +1644,7 @@ subroutine json_throw_exception(msg)
16441644

16451645
if (is_verbose) then
16461646
write(*,'(A)') '***********************'
1647-
write(*,'(A)') 'JSON-FORTRAN EXCEPTION: '//trim(msg)
1647+
write(*,'(A)') 'JSON-Fortran EXCEPTION: '//trim(msg)
16481648
!call backtrace() ! gfortran (use -fbacktrace -fall-intrinsics flags)
16491649
!call tracebackqq(-1) ! intel (requires "use ifcore" in this routine)
16501650
write(*,'(A)') '***********************'
@@ -6487,7 +6487,7 @@ subroutine compact_real_string(str)
64876487
decimal_pos = scan(str,CK_'.')
64886488
if (exp_start /= 0) separator = str(exp_start:exp_start)
64896489

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

64926492
significand = str
64936493
sig_trim = len(trim(significand))

0 commit comments

Comments
 (0)