[llvm-commits] CVS: llvm/include/llvm/System/TimeValue.h

Jeff Cohen jeffc at jolt-lang.org
Sat Jan 1 10:58:34 PST 2005



Changes in directory llvm/include/llvm/System:

TimeValue.h updated: 1.10 -> 1.11
---
Log message:

Fix bountiful sources of VC++ 'possible loss of data' warnings

---
Diffs of the changes:  (+2 -2)

Index: llvm/include/llvm/System/TimeValue.h
diff -u llvm/include/llvm/System/TimeValue.h:1.10 llvm/include/llvm/System/TimeValue.h:1.11
--- llvm/include/llvm/System/TimeValue.h:1.10	Mon Dec 13 23:26:43 2004
+++ llvm/include/llvm/System/TimeValue.h	Sat Jan  1 12:58:23 2005
@@ -314,7 +314,7 @@
     /// @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 @@
     /// @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();
     }






More information about the llvm-commits mailing list