mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
when dumping stream, preserve the subset of bits in the last word
that's real data. This fixes assertions that after popping a move off the move stack the hash is the same as before it was pushed. It may or may not be sufficient to fix reported stalls, but it's certainly necessary.
This commit is contained in:
parent
6ce1fbe465
commit
89138edae1
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ mem_stream_copyBits( const XWStreamCtxt* p_sctx, XWStreamPos XP_UNUSED(startPos)
|
|||
XP_ASSERT( len <= stream->nBytesAllocated );
|
||||
XP_MEMCPY( buf, stream->buf, len );
|
||||
if ( 0 != BIT_PART(endPos) ) {
|
||||
buf[len-1] &= 1 << BIT_PART(endPos);
|
||||
buf[len-1] &= ~(0xFF << BIT_PART(endPos));
|
||||
}
|
||||
}
|
||||
*lenp = len;
|
||||
|
|
Loading…
Add table
Reference in a new issue