Skip to content

Commit

Permalink
[mono][interp] Add explicit cast for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
BrzVlad committed Mar 6, 2024
1 parent 5decd50 commit 09ff7cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mono/mono/mini/interp/interp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5286,7 +5286,7 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
ip += 4;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_ADD_I4_IMM2)
LOCAL_VAR (ip [1], gint32) = LOCAL_VAR (ip [2], gint32) + READ32 (ip + 3);
LOCAL_VAR (ip [1], gint32) = LOCAL_VAR (ip [2], gint32) + (gint32)READ32 (ip + 3);
ip += 5;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_ADD1_I8)
Expand All @@ -5298,7 +5298,7 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
ip += 4;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_ADD_I8_IMM2)
LOCAL_VAR (ip [1], gint64) = LOCAL_VAR (ip [2], gint64) + READ32 (ip + 3);
LOCAL_VAR (ip [1], gint64) = LOCAL_VAR (ip [2], gint64) + (gint32)READ32 (ip + 3);
ip += 5;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_SUB_I4)
Expand Down Expand Up @@ -5332,15 +5332,15 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
ip += 4;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_MUL_I4_IMM2)
LOCAL_VAR (ip [1], gint32) = LOCAL_VAR (ip [2], gint32) * READ32 (ip + 3);
LOCAL_VAR (ip [1], gint32) = LOCAL_VAR (ip [2], gint32) * (gint32)READ32 (ip + 3);
ip += 5;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_MUL_I8_IMM)
LOCAL_VAR (ip [1], gint64) = LOCAL_VAR (ip [2], gint64) * (gint16)ip [3];
ip += 4;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_MUL_I8_IMM2)
LOCAL_VAR (ip [1], gint64) = LOCAL_VAR (ip [2], gint64) * READ32 (ip + 3);
LOCAL_VAR (ip [1], gint64) = LOCAL_VAR (ip [2], gint64) * (gint32)READ32 (ip + 3);
ip += 5;
MINT_IN_BREAK;
MINT_IN_CASE(MINT_ADD_MUL_I4_IMM)
Expand Down

0 comments on commit 09ff7cd

Please sign in to comment.