about summary refs log tree commit diff stats
path: root/054static_dispatch.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-04-04 19:43:57 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-04-04 19:43:57 -0700
commit5b96e723f17681368900dd817bfff7d11ef55b9a (patch)
treebae53d16299805e873d24b145077017d23560df8 /054static_dispatch.cc
parent3c31b721c2bd5793430e4b2eba148d5ac46fabea (diff)
downloadmu-5b96e723f17681368900dd817bfff7d11ef55b9a.tar.gz
3813
Diffstat (limited to '054static_dispatch.cc')
-rw-r--r--054static_dispatch.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/054static_dispatch.cc b/054static_dispatch.cc
index 7fdfa391..6e2638ef 100644
--- a/054static_dispatch.cc
+++ b/054static_dispatch.cc
@@ -325,12 +325,12 @@ const recipe& best_variant(const instruction& inst, vector<recipe_ordinal>& cand
     int score = abs(SIZE(candidate.products)-SIZE(inst.products))
                           + abs(SIZE(candidate.ingredients)-SIZE(inst.ingredients));
     // prefer functions with non-address ingredients or products
-    for (int i = 0;  i < SIZE(candidate.ingredients);  ++i) {
-      if (is_mu_address(candidate.ingredients.at(i)))
+    for (int j = 0;  j < SIZE(candidate.ingredients);  ++j) {
+      if (is_mu_address(candidate.ingredients.at(j)))
         ++score;
     }
-    for (int i = 0;  i < SIZE(candidate.products);  ++i) {
-      if (is_mu_address(candidate.products.at(i)))
+    for (int j = 0;  j < SIZE(candidate.products);  ++j) {
+      if (is_mu_address(candidate.products.at(j)))
         ++score;
     }
     assert(score < 999);