diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-01 18:58:23 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-01 18:58:23 +0000 |
commit | 00dcbaa6e5d2f44ee0d0a7dc5bceabda6b30b504 (patch) | |
tree | 3f47429a47b0539842af8a73785dc652b4528266 /include/llvm/System | |
parent | 0f7745f2e53172cb169dd3a8b85d541f8ecb88c3 (diff) | |
download | external_llvm-00dcbaa6e5d2f44ee0d0a7dc5bceabda6b30b504.zip external_llvm-00dcbaa6e5d2f44ee0d0a7dc5bceabda6b30b504.tar.gz external_llvm-00dcbaa6e5d2f44ee0d0a7dc5bceabda6b30b504.tar.bz2 |
Fix bountiful sources of VC++ 'possible loss of data' warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/TimeValue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/System/TimeValue.h b/include/llvm/System/TimeValue.h index e8a8365..c8461d2 100644 --- a/include/llvm/System/TimeValue.h +++ b/include/llvm/System/TimeValue.h @@ -314,7 +314,7 @@ namespace sys { /// @brief Converts from microsecond format to TimeValue format void usec( int64_t microseconds ) { this->seconds_ = microseconds / MICROSECONDS_PER_SECOND; - this->nanos_ = (microseconds % MICROSECONDS_PER_SECOND) * + this->nanos_ = NanoSecondsType(microseconds % MICROSECONDS_PER_SECOND) * NANOSECONDS_PER_MICROSECOND; this->normalize(); } @@ -322,7 +322,7 @@ namespace sys { /// @brief Converts from millisecond format to TimeValue format void msec( int64_t milliseconds ) { this->seconds_ = milliseconds / MILLISECONDS_PER_SECOND; - this->nanos_ = (milliseconds % MILLISECONDS_PER_SECOND) * + this->nanos_ = NanoSecondsType(milliseconds % MILLISECONDS_PER_SECOND) * NANOSECONDS_PER_MILLISECOND; this->normalize(); } |