Skip to content

Commit 67132c4

Browse files
authored
Merge pull request #688 from St-Maxwell/main
Small fix for fpm_model
2 parents c841456 + f2a2ad8 commit 67132c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/fpm_source_parsing.f90

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ function parse_f_source(f_filename,error) result(f_source)
9999
file_lines_lower(i)%s=adjustl(lower(file_lines_lower(i)%s))
100100
enddo
101101

102-
! Ignore empty files, returned as FPM_UNIT_UNKNOWN
103-
if (len_trim(file_lines_lower) < 1) return
104-
105-
f_source%digest = fnv_1a(file_lines)
102+
! fnv_1a can only be applied to non-zero-length arrays
103+
if (len_trim(file_lines_lower) > 0) f_source%digest = fnv_1a(file_lines)
106104

107105
do pass = 1,2
108106
n_use = 0

0 commit comments

Comments
 (0)