about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorRuud van Asseldonk <dev@veniogames.com>2014-08-19 14:32:20 +0200
committerRuud van Asseldonk <dev@veniogames.com>2014-08-20 13:55:02 +0200
commit39133efebf49823002977f0ad0ac12edf27b4d06 (patch)
tree9cab7ff0b07902691631a230c9395979936f52ef /src/rustllvm/RustWrapper.cpp
parentd16a5cd7c4d37c947faf4661b22e994409197809 (diff)
downloadrust-39133efebf49823002977f0ad0ac12edf27b4d06.tar.gz
rust-39133efebf49823002977f0ad0ac12edf27b4d06.zip
libstd: Refactor Duration.
This changes the internal representation of `Duration` from

    days: i32,
    secs: i32,
    nanos: u32

to

    secs: i64,
    nanos: i32

This resolves #16466. Some methods now take `i64` instead of `i32` due
to the increased range. Some methods, like `num_milliseconds`, now
return an `Option<i64>` instead of `i64`, because the range of
`Duration` is now larger than e.g. 2^63 milliseconds.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions