Skip to content

Commit 8249279

Browse files
committed
another fix
1 parent a30dbcc commit 8249279

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/FindFirstFunctions.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,9 @@ function (g::Guesser)(x)
239239
else
240240
i_0, i_f = firstindex(v), lastindex(v)
241241
i_appr = f * (i_f - i_0) + i_0
242-
if typemin(Int64) <= i_appr <= typemax(Int64)
243-
round(typeof(firstindex(v)), i_appr)
242+
target_type = typeof(firstindex(v))
243+
if typemin(target_type) <= i_appr <= typemax(target_type)
244+
round(target_type, i_appr)
244245
else
245246
idx_prev[]
246247
end

0 commit comments

Comments
 (0)