From c7d32a482a1e162845fbeab46bb78fd91085351e Mon Sep 17 00:00:00 2001 From: walbourn_cp Date: Thu, 7 Nov 2013 16:26:56 -0800 Subject: [PATCH] DirectXTex: added static_assert to texassemble source --- Texassemble/texassemble.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Texassemble/texassemble.cpp b/Texassemble/texassemble.cpp index e7b344b..6692b0b 100644 --- a/Texassemble/texassemble.cpp +++ b/Texassemble/texassemble.cpp @@ -32,8 +32,11 @@ enum OPTIONS // Note: dwOptions below assumes 32 or less options. OPT_USE_DX10, OPT_NOLOGO, OPT_SEPALPHA, + OPT_MAX }; +static_assert( OPT_MAX <= 32, "dwOptions is a DWORD bitfield" ); + struct SConversion { WCHAR szSrc [MAX_PATH];