add assert to make sure of precondition. setting to 0 is only valid if we flush a whole 32 bits and no more
@@ -196,6 +196,7 @@ namespace yojimbo
{
if ( m_scratchBits != 0 )
{
+ assert( m_scratchBits <= 32 );
assert( m_wordIndex < m_numWords );
m_data[m_wordIndex] = host_to_network( uint32_t( m_scratch & 0xFFFFFFFF ) );
m_scratch >>= 32;
