diff options
Diffstat (limited to 'accessibility/dasher/files/patch-Src_DasherCore_SimpleTimer.cpp')
-rw-r--r-- | accessibility/dasher/files/patch-Src_DasherCore_SimpleTimer.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/accessibility/dasher/files/patch-Src_DasherCore_SimpleTimer.cpp b/accessibility/dasher/files/patch-Src_DasherCore_SimpleTimer.cpp new file mode 100644 index 000000000..745c41f85 --- /dev/null +++ b/accessibility/dasher/files/patch-Src_DasherCore_SimpleTimer.cpp @@ -0,0 +1,24 @@ +--- Src/DasherCore/SimpleTimer.cpp.orig Wed May 31 00:14:12 2006 ++++ Src/DasherCore/SimpleTimer.cpp Wed May 31 00:14:23 2006 +@@ -34,8 +34,8 @@ CSimpleTimer::CSimpleTimer() + m_iStartSecond = sTimeBuffer.time; + #else + gettimeofday(&sTimeBuffer, &sTimezoneBuffer); +- m_iStartMs = sTimeBuffer.tv_usec / 1000; +- m_iStartSecond = sTimeBuffer.tv_sec; ++ m_iStartMs = (int) sTimeBuffer.tv_usec / 1000; ++ m_iStartSecond = (int) sTimeBuffer.tv_sec; + #endif + + } +@@ -59,8 +59,8 @@ double CSimpleTimer::GetElapsed() + int iEndSecond = sTimeBuffer.time; + #else + gettimeofday(&sTimeBuffer, &sTimezoneBuffer); +- int iEndMs = sTimeBuffer.tv_usec / 1000; +- int iEndSecond = sTimeBuffer.tv_sec; ++ int iEndMs = (int) sTimeBuffer.tv_usec / 1000; ++ int iEndSecond = (int) sTimeBuffer.tv_sec; + #endif + + |