We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a30dbcc commit 8249279Copy full SHA for 8249279
src/FindFirstFunctions.jl
@@ -239,8 +239,9 @@ function (g::Guesser)(x)
239
else
240
i_0, i_f = firstindex(v), lastindex(v)
241
i_appr = f * (i_f - i_0) + i_0
242
- if typemin(Int64) <= i_appr <= typemax(Int64)
243
- round(typeof(firstindex(v)), i_appr)
+ target_type = typeof(firstindex(v))
+ if typemin(target_type) <= i_appr <= typemax(target_type)
244
+ round(target_type, i_appr)
245
246
idx_prev[]
247
end
0 commit comments