Skip to content

Commit

Permalink
Fix compile error with older gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbab committed Mar 28, 2024
1 parent 7528563 commit cc93963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class BenchEngine : public UciEngine {
size_t nbNodes = 0;
TimeMs elapsed = 0;

size_t nps() { return 1000ull * nbNodes / std::max((uint64_t)elapsed, 1ull); }
size_t nps() { return 1000ull * nbNodes / std::max((uint64_t)elapsed, (uint64_t)1); }

private:
virtual void onSearchProgress(const SearchEvent &event) {
Expand Down

0 comments on commit cc93963

Please sign in to comment.