changeset 13058:8966b5fe53ce

Use unsigned comparison, fixes warnings in build.
author rkennke
date Wed, 08 Mar 2017 12:50:29 +0100
parents d1f169eaeec9
children e4a4414151f0
files src/share/vm/opto/shenandoahSupport.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/shenandoahSupport.cpp	Tue Mar 07 18:20:22 2017 +0100
+++ b/src/share/vm/opto/shenandoahSupport.cpp	Wed Mar 08 12:50:29 2017 +0100
@@ -991,7 +991,7 @@
           }
         }
         if (i != calls_len) {
-          const int args_len = sizeof(calls[0].args) / sizeof(calls[0].args[0]);
+          const uint args_len = sizeof(calls[0].args) / sizeof(calls[0].args[0]);
           for (uint j = 0; j < args_len; j++) {
             int pos = calls[i].args[j].pos;
             if (pos == -1) {
@@ -1086,7 +1086,7 @@
       }
       uint stop = n->is_Call() ? n->as_Call()->tf()->domain()->cnt() : n->req();
       if (i != others_len) {
-        const int inputs_len = sizeof(others[0].inputs) / sizeof(others[0].inputs[0]);
+        const uint inputs_len = sizeof(others[0].inputs) / sizeof(others[0].inputs[0]);
         for (uint j = 0; j < inputs_len; j++) {
           int pos = others[i].inputs[j].pos;
           if (pos == -1) {