fix •Repr without FORMATTER

This commit is contained in:
dzaima 2021-05-19 15:16:18 +03:00
parent dd865697ef
commit c9a54b9363

View File

@ -38,7 +38,13 @@ B repr_c1(B t, B x) {
char buf[BL];
snprintf(buf, BL, "%g", x.f);
return m_str8(strlen(buf), buf);
} else return bqn_repr(x);
} else {
#ifdef FORMATTER
return bqn_repr(x);
#else
thrM("•Repr: Cannot represent non-numbers");
#endif
}
}
B fill_c1(B t, B x) {