medfall

A super great game engine
Log | Files | Refs

commit e94d14a39897b7fe75dfdf79fd4be5302db9fafa
parent 26f712a8520424b4ca203ea3c46df3a34ddea74b
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue, 31 Oct 2017 20:55:59 +0200

Warning

Diffstat:
clipmap.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clipmap.cc b/clipmap.cc @@ -35,7 +35,7 @@ static void file_get_contents_and_decompress( const char * path, u8 * decompress size_t compressed_size; u8 * compressed = file_get_contents( path, &compressed_size ); int ok = LZ4_decompress_safe( ( const char * ) compressed, ( char * ) decompressed, compressed_size, decompressed_size ); - ASSERT( ok == decompressed_size ); + ASSERT( ok > 0 && size_t( ok ) == decompressed_size ); free( compressed ); }