Skip to content
Commit 4af40c40 authored by Richard Smith's avatar Richard Smith
Browse files

PR15383: When -fsanitize=float-cast-overflow checks a float-to-int conversion,

it wasn't taking into account that the float should be truncated *before* the
range check happens. Thus (unsigned)-0.99 and (unsigned char)255.9 have defined
behavior and should not be trapped.

llvm-svn: 177362
parent fc9aad64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment