Skip to content

Commit 34de9f5

Browse files
authored
Merge pull request #1407 from Unity-Technologies/unity-master-fix-1318722
Fix Mono Windows x64 crash blocking CI Windows x64 Release job. (mono#20720) (case 1318722)
2 parents e4bfd95 + f168678 commit 34de9f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mono/arch/amd64/amd64-codegen.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,8 @@ typedef union {
417417

418418
#define amd64_mov_reg_imm(inst,reg,imm) \
419419
do { \
420-
int _amd64_width_temp = ((guint64)(imm) == (guint64)(int)(guint64)(imm)); \
421420
amd64_codegen_pre(inst); \
422-
amd64_mov_reg_imm_size ((inst), (reg), (imm), (_amd64_width_temp ? 4 : 8)); \
421+
amd64_mov_reg_imm_size ((inst), (reg), (imm), (amd64_is_imm32 (((gint64)imm)) ? 4 : 8)); \
423422
amd64_codegen_post(inst); \
424423
} while (0)
425424

0 commit comments

Comments
 (0)