Skip to content

Commit

Permalink
Squash some compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Oct 1, 2024
1 parent 38272e6 commit 9921a75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fortran/src/include/utils.f90
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ function get_answer(id) result(answer)
character(len=32) :: val
character(len=4) :: id_, type_, length

if (id < 1 .or. id > size(cached_answers)) then
print *, "Error: ID is out of bounds."
answer%type = errort
return
end if

if (cache_inited) then
answer = cached_answers(id)
return
Expand Down

0 comments on commit 9921a75

Please sign in to comment.