8230910: libsspi_bridge does not build on Windows 32bit
authorstuefe
Sun, 15 Sep 2019 08:41:48 +0200
changeset 58140 a6f653312b19
parent 58139 593005ac5a0a
child 58141 a6c85c21aa39
child 58157 9dca61a7df19
8230910: libsspi_bridge does not build on Windows 32bit Reviewed-by: alanb, weijun
src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp
--- 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;