From 5b0b386ea71d375de6cad4f274268fc011429495 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:21:28 +0100 Subject: [PATCH] Tier1: assert on LZSS window size being a power of 2 --- src/public/tier1/lzss.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/public/tier1/lzss.h b/src/public/tier1/lzss.h index 86fbabeb..47f5adeb 100644 --- a/src/public/tier1/lzss.h +++ b/src/public/tier1/lzss.h @@ -65,6 +65,7 @@ private: FORCEINLINE CLZSS::CLZSS( int nWindowSize ) { + Assert( IsPowerOfTwo( nWindowSize ) ); m_nWindowSize = nWindowSize; } #endif