Skip to content

Commit efe8b87

Browse files
[mono] Fix msvc warning (#98568)
* Fix msvc warning * One more signing mismatch --------- Co-authored-by: Steve Pfister <stpfiste@microsoft.com>
1 parent 2714e15 commit efe8b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mono/mono/mini/mini-llvm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11634,7 +11634,7 @@ MONO_RESTORE_WARNING
1163411634
lhs = LLVMBuildLoad2 (builder, ret_t, addresses [ins->sreg1]->value, "");
1163511635

1163611636
LLVMValueRef *args = g_new0(LLVMValueRef, n_elem_tuple + 2);
11637-
int idx = 0;
11637+
unsigned int idx = 0;
1163811638
for ( ; idx < n_elem_tuple; idx++) {
1163911639
args [idx] = LLVMBuildExtractValue (builder, lhs, idx, "extract_elem");
1164011640
}
@@ -11650,7 +11650,7 @@ MONO_RESTORE_WARNING
1165011650
LLVMValueRef retval = LLVMGetUndef (ret_t);
1165111651
args [idx - 1] = const_int64 (i);
1165211652
LLVMValueRef result_loaded = call_overloaded_intrins (ctx, iid, ovr_tag, args, "");
11653-
for (int j = 0; j < n_elem_tuple; j++) {
11653+
for (unsigned int j = 0; j < n_elem_tuple; j++) {
1165411654
LLVMValueRef elem = LLVMBuildExtractValue (builder, result_loaded, j, "extract_elem");
1165511655
retval = LLVMBuildInsertValue (builder, retval, elem, j, "insert_val");
1165611656
}

0 commit comments

Comments
 (0)