summaryrefslogtreecommitdiff
path: root/cnn_v2/src/cnn_v2_effect.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 12:52:07 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 12:52:07 +0100
commit83322562ce0c33a8026611471dc7b1b3241bce64 (patch)
treec7702f33b02e7eb639eb26c8708030e46e4e52fe /cnn_v2/src/cnn_v2_effect.cc
parentf03f3428991499e0701cce5eacc2bb943fde9d8e (diff)
refactor: invert FATAL_CHECK logic to standard assertion style
- Inverted FATAL_CHECK macro to crash if condition is FALSE (standard assertion) - Updated all call sites in audio, GPU, and CNN subsystems - Updated documentation and examples - Recorded completion in doc/COMPLETED.md
Diffstat (limited to 'cnn_v2/src/cnn_v2_effect.cc')
-rw-r--r--cnn_v2/src/cnn_v2_effect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cnn_v2/src/cnn_v2_effect.cc b/cnn_v2/src/cnn_v2_effect.cc
index 60538d4..133087a 100644
--- a/cnn_v2/src/cnn_v2_effect.cc
+++ b/cnn_v2/src/cnn_v2_effect.cc
@@ -77,7 +77,7 @@ void CNNv2Effect::load_weights() {
uint32_t num_layers = header[2];
uint32_t total_weights = header[3];
- FATAL_CHECK(magic != 0x324e4e43, "Invalid CNN v2 weights magic\n"); // 'CNN2'
+ FATAL_CHECK(magic == 0x324e4e43, "Invalid CNN v2 weights magic\n"); // 'CNN2'
// Support both version 1 (16-byte header) and version 2 (20-byte header with
// mip_level)