diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-12-25 08:10:19 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-12-25 08:10:19 +0000 |
commit | 146e78f4c9d801e0ce931156e0fa98dbd1ae477e (patch) | |
tree | dabab96c70086dac00be0a2f296193b59936d94b /hrtimer.cpp | |
parent | 9b5d080a4961d11ac5f85e4624c6ae9f0c6f96c1 (diff) | |
download | cryptopp-git-146e78f4c9d801e0ce931156e0fa98dbd1ae477e.tar.gz |
fix compile on MSVC2002 and MSVC6 without Processor Pack
Diffstat (limited to 'hrtimer.cpp')
-rw-r--r-- | hrtimer.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/hrtimer.cpp b/hrtimer.cpp index 6fe9b568..71149baf 100644 --- a/hrtimer.cpp +++ b/hrtimer.cpp @@ -23,13 +23,7 @@ double TimerBase::ConvertTo(TimerWord t, Unit unit) static unsigned long unitsPerSecondTable[] = {1, 1000, 1000*1000, 1000*1000*1000}; assert(unit < sizeof(unitsPerSecondTable) / sizeof(unitsPerSecondTable[0])); -#if defined(_MSC_VER) && (_MSC_VER < 1300) - // MSVC 6 workaround - return (double)(__int64)t * unitsPerSecondTable[unit] / (__int64)TicksPerSecond(); -#else - return (double)t * unitsPerSecondTable[unit] / TicksPerSecond(); -#endif - + return (double)CRYPTOPP_VC6_INT64 t * unitsPerSecondTable[unit] / CRYPTOPP_VC6_INT64 TicksPerSecond(); } void TimerBase::StartTimer() |