Changeset 25650 in vbox
- Timestamp:
- Jan 5, 2010 2:43:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/semevent-linux.cpp
r25639 r25650 30 30 31 31 #include <features.h> 32 #if __GLIBC_PREREQ(2,6) && !defined(IPRT_WITH_FUTEX_BASED_SEMS) 32 #if __GLIBC_PREREQ(2,6) && !defined(IPRT_WITH_FUTEX_BASED_SEMS) && !defined(DEBUG_bird) 33 33 34 34 /* … … 238 238 return VERR_TIMEOUT; 239 239 ts.tv_sec = cMillies / 1000; 240 ts.tv_nsec = (cMillies % 1000) * 1000000;241 u64End = RTTimeSystemNanoTS() + cMillies * 1000000;240 ts.tv_nsec = (cMillies % 1000) * UINT32_C(1000000); 241 u64End = RTTimeSystemNanoTS() + cMillies * UINT64_C(1000000); 242 242 pTimeout = &ts; 243 243 } … … 309 309 break; 310 310 } 311 ts.tv_sec = i64Diff / 1000000000;312 ts.tv_nsec = i64Diff % 1000000000;311 ts.tv_sec = (uint64_t)i64Diff / UINT32_C(1000000000); 312 ts.tv_nsec = (uint64_t)i64Diff % UINT32_C(1000000000); 313 313 } 314 314 }
Note:
See TracChangeset
for help on using the changeset viewer.