Cleaned up Windows-Store

pull/174/head
Jeffrey Walton 2016-05-17 03:05:18 -04:00
parent bb0a7a4498
commit 9678e80eb4
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ NAMESPACE_BEGIN(CryptoPP)
#ifndef CRYPTOPP_IMPORTS
#if defined(CRYPTOPP_WIN32_AVAILABLE)
inline TimerWord InitializePerformanceCounterFrequency()
static TimerWord InitializePerformanceCounterFrequency()
{
LARGE_INTEGER freq = {0,0};
if (!QueryPerformanceFrequency(&freq))
@ -83,7 +83,7 @@ double TimerBase::ElapsedTimeAsDouble()
unsigned long TimerBase::ElapsedTime()
{
double elapsed = ElapsedTimeAsDouble();
assert(elapsed <= ULONG_MAX);
assert(elapsed <= (double)ULONG_MAX);
return (unsigned long)elapsed;
}