We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56740fc commit a996ec5Copy full SHA for a996ec5
src/stdlib_ascii.f90
@@ -145,7 +145,7 @@ pure logical function is_printable(c)
145
character(len=1), intent(in) :: c !! The character to test.
146
integer :: ic
147
ic = iachar(c) ! '~'
148
- is_printable = c >= ' ' .and. ic <= int(z'7E')
+ is_printable = ic >= iachar(' ') .and. ic <= int(z'7E')
149
end function
150
151
!> Checks whether `c` is a lowercase ASCII letter (a .. z).
0 commit comments