Skip to content

Overflow on absolute comparison of signed integers #52

@pcpthm

Description

@pcpthm
fn main() {
    approx::abs_diff_ne!(std::i32::MAX, std::i32::MIN);
}

Expected behavior: Runs fine.
Actual behavior: thread 'main' panicked at 'attempt to subtract with overflow'.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions