Fix some warnings with Intel C++ compiler
authorMarco Costalba <mcostalba@gmail.com>
Sun, 5 Oct 2014 08:53:31 +0000 (10:53 +0200)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sun, 12 Oct 2014 19:34:54 +0000 (20:34 +0100)
No functional change.

src/Makefile
src/tt.cpp

index 1e5a165..92072cc 100644 (file)
@@ -285,7 +285,11 @@ endif
 
 ### 3.9 popcnt
 ifeq ($(popcnt),yes)
-       CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT
+       ifeq ($(comp),icc)
+               CXXFLAGS += -msse3 -DUSE_POPCNT
+       else
+               CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT
+       endif
 endif
 
 ### 3.10 pext
index 46d891c..4afd965 100644 (file)
@@ -75,7 +75,7 @@ const TTEntry* TranspositionTable::probe(const Key key) const {
   for (unsigned i = 0; i < TTClusterSize; ++i, ++tte)
       if (tte->key16 == key16)
       {
-          tte->genBound8 = generation | tte->bound(); // Refresh
+          tte->genBound8 = uint8_t(generation | tte->bound()); // Refresh
           return tte;
       }