diff --git a/include/yojimbo_config.h b/include/yojimbo_config.h index d4a2f2e9..034cb817 100644 --- a/include/yojimbo_config.h +++ b/include/yojimbo_config.h @@ -33,7 +33,7 @@ #define YOJIMBO_MAJOR_VERSION 1 #define YOJIMBO_MINOR_VERSION 0 -#define YOJIMBO_PATCH_VERSION 0 +#define YOJIMBO_PATCH_VERSION 1 #if !defined(YOJIMBO_DEBUG) && !defined(YOJIMBO_RELEASE) #if defined(NDEBUG) diff --git a/test.cpp b/test.cpp index 0ff39b92..fbb90ffc 100644 --- a/test.cpp +++ b/test.cpp @@ -877,6 +877,9 @@ void test_connection_reliable_ordered_messages_and_blocks_multiple_channels() { const int NumChannels = 2; + yojimbo_assert( NumChannels >= 0 ); + yojimbo_assert( NumChannels <= MaxChannels ); + double time = 100.0; TestMessageFactory messageFactory( GetDefaultAllocator() ); @@ -1914,6 +1917,8 @@ void test_reliable_outbound_sequence_outdated() config.numChannels = 2; config.timeout = -1; + yojimbo_assert( config.numChannels <= MaxChannels ); + const int BlockSize = config.channel[0].blockFragmentSize * 2; Client client( GetDefaultAllocator(), clientAddress, config, adapter, time );