From 7f24b27652ee6fa84e38f181cea57f319af0c204 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 28 Jul 2025 13:52:00 +0200 Subject: Make failed assert exit immediately --- src/solvers/h48/coordinate.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/solvers/h48/coordinate.h') diff --git a/src/solvers/h48/coordinate.h b/src/solvers/h48/coordinate.h index eb08fd8..9437fa7 100644 --- a/src/solvers/h48/coordinate.h +++ b/src/solvers/h48/coordinate.h @@ -15,7 +15,7 @@ coord_h48( uint32_t data; uint8_t ttrep; - DBG_ASSERT(h <= 11, -1, "coord_h48: h must be between 0 and 11\n"); + DBG_ASSERT(h <= 11, "coord_h48: h must be between 0 and 11\n"); cocsep = coord_cocsep(c); data = cocsepdata[cocsep]; @@ -54,8 +54,7 @@ invcoord_h48( cube_t ret; int64_t hh, coclass, ee, esep, eo; - DBG_ASSERT(h <= 11, ZERO_CUBE, - "invcoord_h48: h must be between 0 and 11\n"); + DBG_ASSERT(h <= 11, "invcoord_h48: h must be between 0 and 11\n"); hh = (int64_t)h; coclass = i / H48_ESIZE(h); -- cgit v1.3