Commit 65444831 authored by yb9976's avatar yb9976
Browse files

Fixed some signedness issues.

parent dc7be228
......@@ -76,9 +76,9 @@ void pbqp_matrix_add(pbqp_matrix_t *sum, pbqp_matrix_t *summand)
assert(sum->cols == summand->cols);
assert(sum->rows == summand->rows);
int len = sum->rows * sum->cols;
unsigned len = sum->rows * sum->cols;
for (int i = 0; i < len; ++i) {
for (unsigned i = 0; i < len; ++i) {
sum->entries[i] = pbqp_add(sum->entries[i], summand->entries[i]);
}
}
......
......@@ -30,7 +30,7 @@ pbqp_edge_t *alloc_edge(pbqp_t *pbqp, unsigned src_index, unsigned tgt_index,
pbqp_edge_t *edge = OALLOC(&pbqp->obstack, pbqp_edge_t);
if (tgt_index < src_index) {
int tmp = src_index;
unsigned tmp = src_index;
src_index = tgt_index;
tgt_index = tmp;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment