summaryrefslogtreecommitdiffhomepage
path: root/ir/kaps
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2013-03-07 10:48:57 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2013-03-07 10:48:57 +0100
commit65444831118a69c09e7a9a9976aea49548f4416c (patch)
tree5754fea957b1f32fccf059561fbf3122cb45a1b2 /ir/kaps
parentdc7be228c3bc3a5a4106cacdf8b10a882af9e82f (diff)
Fixed some signedness issues.
Diffstat (limited to 'ir/kaps')
-rw-r--r--ir/kaps/matrix.c4
-rw-r--r--ir/kaps/pbqp_edge.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ir/kaps/matrix.c b/ir/kaps/matrix.c
index 2f912fe..405c059 100644
--- a/ir/kaps/matrix.c
+++ b/ir/kaps/matrix.c
@@ -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]);
}
}
diff --git a/ir/kaps/pbqp_edge.c b/ir/kaps/pbqp_edge.c
index c6a665e..4dbd1db 100644
--- a/ir/kaps/pbqp_edge.c
+++ b/ir/kaps/pbqp_edge.c
@@ -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;