Skip to content

Commit

Permalink
Fix compilation on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rheit committed Nov 6, 2022
1 parent 7f899bd commit f34d4d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/common/engine/stats.h
Expand Up @@ -48,6 +48,7 @@ class cycle_t
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; }
Expand Down Expand Up @@ -120,6 +121,12 @@ class cycle_t
Sec -= ts.tv_sec + ts.tv_nsec * 1e-9;
}

void ResetAndClock()
{
Reset();
Clock();
}

void Unclock()
{
#ifdef __linux__
Expand Down
2 changes: 1 addition & 1 deletion src/common/objects/dobjgc.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit f34d4d2

Please sign in to comment.