Skip to content

Invalid range checking causes unreachable code in runtime.gd #64

@belzecue

Description

@belzecue

if idx < 0 and idx >= params.size():

This is found in each of the three get_params function in runtime.gd. The dependent code never runs because if idx = -1 (or lower) then it cannot also be >= 0 (or higher).

I believe the line should be:

if idx < 0 or idx >= params.size():

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions