assert stream version being set consistently, not changed

This commit is contained in:
Eric House 2015-07-06 20:24:45 -07:00
parent 33d0db93e8
commit fd06bca151

View file

@ -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 */