]> git.sesse.net Git - stockfish/blobdiff - src/bitbase.cpp
Clean up step 11
[stockfish] / src / bitbase.cpp
index 75376d33b9874c83a875b8e821440b46d2a1026f..7e86b26e45e7a84f2f807b07bcbb1a94412c3b0e 100644 (file)
@@ -1,7 +1,7 @@
 /*
   Stockfish, a UCI chess playing engine derived from Glaurung 2.1
   Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
-  Copyright (C) 2008 Marco Costalba
+  Copyright (C) 2008-2009 Marco Costalba
 
   Stockfish is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -89,6 +89,7 @@ void generate_kpk_bitbase(uint8_t bitbase[]) {
   int i, j, b;
   for(i = 0; i < 24576; i++) {
     for(b = 0, j = 0; j < 8; b |= (compress_result(Bitbase[8*i+j]) << j), j++);
+    assert(b == int(uint8_t(b)));
     bitbase[i] = (uint8_t)b;
   }