Skip to content

Commit 0b60a39

Browse files
committed
Update stdlib_ascii.f90
Commit the corrected source (#232)
1 parent 098bdb4 commit 0b60a39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/stdlib_ascii.f90

+3-2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ pure logical function is_control(c)
9898
pure logical function is_digit(c)
9999
character(len=1), intent(in) :: c !! The character to test.
100100
integer :: ic
101+
ic = iachar(c)
101102
is_digit = (iachar('0') <= ic) .and. (ic <= iachar('9'))
102103
end function
103104

@@ -110,7 +111,7 @@ pure logical function is_octal_digit(c)
110111
end function
111112

112113
!> Checks whether `c` is a digit in base 16 (0 .. 9, A .. F, a .. f).
113-
pure logical function is_hex_digit(cin)
114+
pure logical function is_hex_digit(c)
114115
character(len=1), intent(in) :: c !! The character to test.
115116
integer :: ic
116117
ic = iachar(c)
@@ -148,7 +149,7 @@ pure logical function is_printable(c)
148149
end function
149150

150151
!> Checks whether `c` is a lowercase ASCII letter (a .. z).
151-
pure logical function is_lower(cin)
152+
pure logical function is_lower(c)
152153
character(len=1), intent(in) :: c !! The character to test.
153154
is_lower = (c >= 'a') .and. (c <= 'z')
154155
end function

0 commit comments

Comments
 (0)