aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/coordinate.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-28 13:52:00 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-28 13:52:00 +0200
commit7f24b27652ee6fa84e38f181cea57f319af0c204 (patch)
tree269b15baf20c2ae4ed3bb1fdb052340311aa1981 /src/solvers/h48/coordinate.h
parent9b248f3b46d5dc0e9522ed264ef71e422a5bc5a5 (diff)
downloadnissy-core-7f24b27652ee6fa84e38f181cea57f319af0c204.tar.gz
nissy-core-7f24b27652ee6fa84e38f181cea57f319af0c204.zip
Make failed assert exit immediately
Diffstat (limited to 'src/solvers/h48/coordinate.h')
-rw-r--r--src/solvers/h48/coordinate.h5
1 files changed, 2 insertions, 3 deletions
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(
15 uint32_t data; 15 uint32_t data;
16 uint8_t ttrep; 16 uint8_t ttrep;
17 17
18 DBG_ASSERT(h <= 11, -1, "coord_h48: h must be between 0 and 11\n"); 18 DBG_ASSERT(h <= 11, "coord_h48: h must be between 0 and 11\n");
19 19
20 cocsep = coord_cocsep(c); 20 cocsep = coord_cocsep(c);
21 data = cocsepdata[cocsep]; 21 data = cocsepdata[cocsep];
@@ -54,8 +54,7 @@ invcoord_h48(
54 cube_t ret; 54 cube_t ret;
55 int64_t hh, coclass, ee, esep, eo; 55 int64_t hh, coclass, ee, esep, eo;
56 56
57 DBG_ASSERT(h <= 11, ZERO_CUBE, 57 DBG_ASSERT(h <= 11, "invcoord_h48: h must be between 0 and 11\n");
58 "invcoord_h48: h must be between 0 and 11\n");
59 58
60 hh = (int64_t)h; 59 hh = (int64_t)h;
61 coclass = i / H48_ESIZE(h); 60 coclass = i / H48_ESIZE(h);

Generated with cgit - Back to sebastiano.tronto.net