Skip to content

bug: CLAMP(value, min, max) clamps negative values incorrectly #14

@aitchFactor

Description

@aitchFactor

values that exceed bounds that are negative numbers are set to 0
repro

# folded const expr
    foo = CLAMP(-4, -3, 0);

# not folded
    x = -4;
    foo = CLAMP (x, -3, 0);
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions