Skip to content

Commit 92c7d70

Browse files
committed
Fix build on windows
1 parent 47007c2 commit 92c7d70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mono/mono/metadata/class-init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ mono_compress_bitmap (uint8_t *dest, const uint8_t *bitmap, int size)
18051805
while (bitmap < end) {
18061806
if (*bitmap || numz == 255) {
18071807
if (dest) {
1808-
*dest++ = numz;
1808+
*dest++ = (uint8_t)numz;
18091809
*dest++ = *bitmap;
18101810
}
18111811
res += 2;
@@ -1819,7 +1819,7 @@ mono_compress_bitmap (uint8_t *dest, const uint8_t *bitmap, int size)
18191819
if (numz) {
18201820
res += 2;
18211821
if (dest) {
1822-
*dest++ = numz;
1822+
*dest++ = (uint8_t)numz;
18231823
*dest++ = 0;
18241824
}
18251825
}

src/mono/mono/mini/type-checking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ mini_emit_interface_bitmap_check (MonoCompile *cfg, int intf_bit_reg, int base_r
137137
#ifdef COMPRESSED_INTERFACE_BITMAP
138138
MonoInst *args [2];
139139
MonoInst *res, *ins;
140-
NEW_LOAD_MEMBASE (cfg, ins, OP_LOAD_MEMBASE, ibitmap_reg, base_reg, offset);
140+
NEW_LOAD_MEMBASE (cfg, ins, OP_LOAD_MEMBASE, ibitmap_reg, base_reg, (target_mgreg_t)offset);
141141
MONO_ADD_INS (cfg->cbb, ins);
142142
args [0] = ins;
143143
args [1] = mini_emit_runtime_constant (cfg, MONO_PATCH_INFO_IID, klass);

0 commit comments

Comments
 (0)