changeset 58011:a6f653312b19

8230910: libsspi_bridge does not build on Windows 32bit Reviewed-by: alanb, weijun
author stuefe
date Sun, 15 Sep 2019 08:41:48 +0200
parents 593005ac5a0a
children a6c85c21aa39
files src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;