]> git.sesse.net Git - pgn-extract/blobdiff - output.c
Add code to dump out the ECO names by hash.
[pgn-extract] / output.c
index 297cf8b37b3e107e6922cf1256b296c51e390893..8a95f2a2540fb4a53dc2a1583a0819c20d9aa5e7 100644 (file)
--- a/output.c
+++ b/output.c
@@ -1206,7 +1206,7 @@ output_sesse_bin_game(Game current_game,FILE *outputfile,
     int black_elo = atoi(black_elo_tag);
 
     for (move = current_game.moves; move != NULL; move = move->next) {
-        unsigned int opening = move->eco ? move->eco->cumulative_hash_value : 0;
+        unsigned int opening = move->eco ? move->eco->cumulative_hash_value : 0;  // Truncate to 32 bits.
 
         // key
         putc(move->bpfen_len + strlen((char *)move->move), outputfile);