Fix TimeValue::Offset* to take uint64_t

llvm-svn: 105812
This commit is contained in:
Eli Friedman 2010-06-11 04:50:35 +00:00
parent e01b70bf30
commit 8d860d557f
2 changed files with 6 additions and 6 deletions

View File

@ -57,13 +57,13 @@ public:
IsValid () const;
void
OffsetWithSeconds (uint32_t sec);
OffsetWithSeconds (uint64_t sec);
void
OffsetWithMicroSeconds (uint32_t usec);
OffsetWithMicroSeconds (uint64_t usec);
void
OffsetWithNanoSeconds (uint32_t nsec);
OffsetWithNanoSeconds (uint64_t nsec);
static TimeValue
Now();

View File

@ -97,19 +97,19 @@ TimeValue::IsValid () const
}
void
TimeValue::OffsetWithSeconds (uint32_t sec)
TimeValue::OffsetWithSeconds (uint64_t sec)
{
m_nano_seconds += sec * NSEC_PER_SEC;
}
void
TimeValue::OffsetWithMicroSeconds (uint32_t usec)
TimeValue::OffsetWithMicroSeconds (uint64_t usec)
{
m_nano_seconds += usec * NSEC_PER_USEC;
}
void
TimeValue::OffsetWithNanoSeconds (uint32_t nsec)
TimeValue::OffsetWithNanoSeconds (uint64_t nsec)
{
m_nano_seconds += nsec;
}