Fix compilation on Linux

This commit is contained in:
Marisa Heit 2022-11-06 12:50:51 -06:00
parent 7f899bd412
commit f34d4d2033
2 changed files with 8 additions and 1 deletions

View file

@ -48,6 +48,7 @@ public:
cycle_t &operator= (const cycle_t &o) { return *this; }
void Reset() {}
void Clock() {}
void ResetAndClock() {}
void Unclock() {}
double Time() { return 0; }
double TimeMS() { return 0; }
@ -120,6 +121,12 @@ public:
Sec -= ts.tv_sec + ts.tv_nsec * 1e-9;
}
void ResetAndClock()
{
Reset();
Clock();
}
void Unclock()
{
#ifdef __linux__

View file

@ -780,7 +780,7 @@ ADD_STAT(gc)
void FStepStats::Reset()
{
for (int i = 0; i < countof(Count); ++i)
for (unsigned i = 0; i < countof(Count); ++i)
{
Count[i] = 0;
BytesCovered[i] = 0;