Skip to content

Commit

Permalink
Fix for 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuo Chen committed Aug 2, 2013
1 parent 393a3db commit 3a35f70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file modified backport.diff 100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions muduo/base/Thread.cc
Expand Up @@ -146,8 +146,8 @@ bool CurrentThread::isMainThread()
void CurrentThread::sleepUsec(int64_t usec)
{
struct timespec ts = { 0, 0 };
ts.tv_sec = usec / Timestamp::kMicroSecondsPerSecond;
ts.tv_nsec = usec % Timestamp::kMicroSecondsPerSecond * 1000;
ts.tv_sec = static_cast<time_t>(usec / Timestamp::kMicroSecondsPerSecond);
ts.tv_nsec = static_cast<long>(usec % Timestamp::kMicroSecondsPerSecond * 1000);
::nanosleep(&ts, NULL);
}

Expand Down

0 comments on commit 3a35f70

Please sign in to comment.