Skip to content

Guesser can crash on inaccurate rounding #25

@SouthEndMusic

Description

@SouthEndMusic

In the rounding in for linear_lookup, this line can crash with an InexactError:

round(typeof(firstindex(v)), f * (i_f - i_0) + i_0)

This is presumably if the second argument float is too big to be rounded to any particular integer given its precision. I propose falling back to idx_prev[] in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions