mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
assert stream version being set consistently, not changed
This commit is contained in:
parent
33d0db93e8
commit
fd06bca151
1 changed files with 2 additions and 0 deletions
|
@ -396,6 +396,8 @@ static void
|
|||
mem_stream_setVersion( XWStreamCtxt* p_sctx, XP_U16 vers )
|
||||
{
|
||||
MemStreamCtxt* stream = (MemStreamCtxt*)p_sctx;
|
||||
/* Something's wrong if we're changing it -- I think */
|
||||
XP_ASSERT( 0 == stream->version || vers == stream->version );
|
||||
stream->version = vers;
|
||||
} /* mem_stream_setVersion */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue