]> git.sesse.net Git - stockfish/commit
Fix compile error in cpu_count()
authorMarco Costalba <mcostalba@gmail.com>
Mon, 31 Oct 2011 19:03:30 +0000 (20:03 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 31 Oct 2011 19:03:30 +0000 (20:03 +0100)
commitac7339877b3e083b5dd93f34ec79779d43f784ae
tree5400c06a8a1e032925e107e2a9dfd94fc605ff97
parent90890844ade67d8081a5284700cc2ef3ebdbb62d
Fix compile error in cpu_count()

The std::min() template function requires both arguments
to be of the same type.

But here we have the integer MAX_THREADS compared to a long:

long sysconf(int name);

So cast to integer and fix the compile.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/misc.cpp