Skip to content

Commit

Permalink
Fix compilation errors with p22 (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Oct 7, 2024
1 parent b8d1906 commit 8ee7d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fortran/src/p0022.f90
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ integer(i18t) function p0022() result(answer)
case ('"')
continue
case default
names(i) = names(i) // current_char
names(i) = trim(names(i) // current_char)
end select
end do
close(unit)
call p0022_sort(names)
do i = 1, name_count
score = 0
do j = 1, len(names(i))
score = score + (ichar(names(i)(j)) .and. 63)
score = score + ichar(names(i)(j)) - ichar('A') + 1
end do
answer = answer + score * i
end do
Expand Down

0 comments on commit 8ee7d45

Please sign in to comment.