Previously we were relying on 2's complement underflow in an int64_t.
Now we cast to a uint64_t so we explicitly get the behavior we want.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Differential D22445
Avoid UB in maxIntN(64). jlebar on Jul 16 2016, 3:20 PM. Authored by
Details Previously we were relying on 2's complement underflow in an int64_t.
Diff Detail
|