src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp
changeset 58140 a6f653312b19
parent 55638 430a51e86f28
child 58679 9c3209ff7550
--- a/src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp	Sun Sep 15 07:47:13 2019 +0200
+++ b/src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp	Sun Sep 15 08:41:48 2019 +0200
@@ -218,7 +218,7 @@
 static BOOLEAN
 has_oid(gss_const_OID_set set, gss_const_OID oid)
 {
-    for (int i = 0; i < set->count; i++) {
+    for (size_t i = 0; i < set->count; i++) {
         if (is_same_oid(&set->elements[i], oid)) {
             return TRUE;
         }
@@ -257,7 +257,7 @@
             return;
         }
         PP("gss_OID_set.count is %d", (int)mechs->count);
-        for (int i = 0; i < mechs->count; i++) {
+        for (size_t i = 0; i < mechs->count; i++) {
             show_oid(&mechs->elements[i]);
         }
     }
@@ -1584,7 +1584,7 @@
     if (set == NULL || *set == GSS_C_NO_OID_SET) {
         return GSS_S_COMPLETE;
     }
-    for (int i = 0; i < (*set)->count; i++) {
+    for (size_t i = 0; i < (*set)->count; i++) {
         delete[] (*set)->elements[i].elements;
     }
     delete[] (*set)->elements;