[qfcc] Show algebra signature for bad basis blades

Clear error messages are always more helpful than opaque ones.
This commit is contained in:
Bill Currie 2023-08-27 15:17:22 +09:00
parent c7d6e80d69
commit 5aea74de7e

View file

@ -517,7 +517,8 @@ algebra_blade_value (algebra_t *alg, const char *name)
uint32_t c = indices[i] - '0'; uint32_t c = indices[i] - '0';
c -= alg->zero != 1; c -= alg->zero != 1;
if (c >= dimension) { if (c >= dimension) {
error (0, "basis %c not in algebra %d", indices[i], c); error (0, "basis %c not in algebra(%d,%d,%d)", indices[i],
alg->plus, alg->minus, alg->zero);
continue; continue;
} }
uint32_t mask = 1u << c; uint32_t mask = 1u << c;