8230910: libsspi_bridge does not build on Windows 32bit
Reviewed-by: alanb, weijun
--- 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;