Skip to content

Commit ad59f6d

Browse files
committed
Fix build errors
1 parent f113643 commit ad59f6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mono/mono/metadata/marshal-lightweight.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,7 +2802,7 @@ emit_managed_wrapper_ilgen (MonoMethodBuilder *mb, MonoMethodSignature *invoke_s
28022802
arg_is_lowered_struct = g_newa (int, sig->param_count);
28032803
int lowered_struct_count = 0;
28042804

2805-
for (int i =0; i < sig->param_count; i++) {
2805+
for (i =0; i < sig->param_count; i++) {
28062806
MonoType *ptype = sig->params [i];
28072807
MonoClass *klass = mono_class_from_mono_type_internal (ptype);
28082808
arg_is_lowered_struct [i] = FALSE;
@@ -2888,7 +2888,7 @@ emit_managed_wrapper_ilgen (MonoMethodBuilder *mb, MonoMethodSignature *invoke_s
28882888
mono_mb_emit_ldloc (mb, tmp_locals [i]);
28892889
}
28902890
else if(mono_method_signature_has_ext_callconv (csig, MONO_EXT_CALLCONV_SWIFTCALL) && arg_is_lowered_struct[i-arg_shift] == 1){
2891-
int j = 0;
2891+
uint32_t j = 0;
28922892
guint8 stind_op;
28932893
int offset = 0;
28942894
for (;j < swift_lowering[i-arg_shift].num_lowered_elements; j++) {

0 commit comments

Comments
 (0)