Skip to content

Commit

Permalink
Fixed off by one error.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpldgr committed Apr 20, 2024
1 parent 1ba9e20 commit b3fbf71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/sfen_packer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ namespace Stockfish::Tools {
code |= stream.read_one_bit() << bits;
++bits;

assert(bits <= 9);
assert(bits <= 10);

for (pr = NO_PIECE_TYPE; pr <= 26; ++pr)
if (huffman_table[pr].code == code
Expand Down

0 comments on commit b3fbf71

Please sign in to comment.