Skip to content

Commit 27e928a

Browse files
committed
implicit whitespace shift parameter identification
1 parent c616095 commit 27e928a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stdlib_ascii.fypp

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ contains
223223
pure function char_to_lower(c) result(t)
224224
character(len=1), intent(in) :: c !! A character.
225225
character(len=1) :: t
226-
integer, parameter :: wp= 32, BA=iachar('A'), BZ=iachar('Z')
226+
integer, parameter :: wp= iachar('a')-iachar('A'), BA=iachar('A'), BZ=iachar('Z')
227227
integer :: k
228228
!Check whether the integer equivalent is between BA=65 and BZ=90
229229
k = ichar(c)
@@ -237,7 +237,7 @@ contains
237237
pure function char_to_upper(c) result(t)
238238
character(len=1), intent(in) :: c !! A character.
239239
character(len=1) :: t
240-
integer, parameter :: wp= 32, la=iachar('a'), lz=iachar('z')
240+
integer, parameter :: wp= iachar('a')-iachar('A'), la=iachar('a'), lz=iachar('z')
241241
integer :: k
242242
!Check whether the integer equivalent is between la=97 and lz=122
243243
k = ichar(c)

0 commit comments

Comments
 (0)