• Umang Yadav's avatar
    Add back clamping and add tests (#1969) · 6957243c
    Umang Yadav authored
    Fixes #1957
    
    Clamping was removed in #1853.
    
    Turns out clamping as necessary to handle overflow/underflow cases. during downcasting, if it overflowed then without clamping it returned infinity.
    6957243c
ref_ops_test.cpp 389 KB