fix unsigned to signed cast

This commit is contained in:
2019-09-12 22:37:26 -04:00
parent 30f7773877
commit 0543907571

View File

@@ -20,10 +20,10 @@ struct Table {
} }
int add_coset() { int add_coset() {
for (int from = 0; from < size(); ++from) { for (int from = 0; from < (int) size(); ++from) {
for (int gen = 0; gen < N; ++gen) { for (int gen = 0; gen < N; ++gen) {
if (get(from, gen) < 0) { if (get(from, gen) < 0) {
int to = size(); int to = (int) size();
add_row(); add_row();
set(from, gen, to); set(from, gen, to);
return to; return to;