Skip to content

Commit dcbc287

Browse files
committed
8230910: libsspi_bridge does not build on Windows 32bit
Reviewed-by: alanb, weijun
1 parent db2c6cc commit dcbc287

File tree

1 file changed

+3
-3
lines changed
  • src/java.security.jgss/windows/native/libsspi_bridge

1 file changed

+3
-3
lines changed

src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ is_same_oid(gss_const_OID o2, gss_const_OID o1)
218218
static BOOLEAN
219219
has_oid(gss_const_OID_set set, gss_const_OID oid)
220220
{
221-
for (int i = 0; i < set->count; i++) {
221+
for (size_t i = 0; i < set->count; i++) {
222222
if (is_same_oid(&set->elements[i], oid)) {
223223
return TRUE;
224224
}
@@ -257,7 +257,7 @@ show_oid_set(gss_const_OID_set mechs)
257257
return;
258258
}
259259
PP("gss_OID_set.count is %d", (int)mechs->count);
260-
for (int i = 0; i < mechs->count; i++) {
260+
for (size_t i = 0; i < mechs->count; i++) {
261261
show_oid(&mechs->elements[i]);
262262
}
263263
}
@@ -1584,7 +1584,7 @@ gss_release_oid_set(OM_uint32 *minor_status,
15841584
if (set == NULL || *set == GSS_C_NO_OID_SET) {
15851585
return GSS_S_COMPLETE;
15861586
}
1587-
for (int i = 0; i < (*set)->count; i++) {
1587+
for (size_t i = 0; i < (*set)->count; i++) {
15881588
delete[] (*set)->elements[i].elements;
15891589
}
15901590
delete[] (*set)->elements;

0 commit comments

Comments
 (0)