about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-09-01 01:16:24 +0800
committerkennytm <kennytm@gmail.com>2017-09-07 17:14:27 +0800
commit8410ca663258423cd16b0741f7a053b320e13da0 (patch)
tree97c6f21fe2697ee48960c6b4d3126914370c1684 /src/rustllvm/RustWrapper.cpp
parenta6a9d4c5fd214cb8110482dee2017607e23ccc7b (diff)
downloadrust-8410ca663258423cd16b0741f7a053b320e13da0.tar.gz
rust-8410ca663258423cd16b0741f7a053b320e13da0.zip
Properly detect overflow in Instance +/- Duration.
Avoid unchecked cast from `u64` to `i64`. Use `try_into()` for checked
cast. (On Unix, cast to `time_t` instead of `i64`.)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions