@@ -6227,15 +6227,19 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
6227
6227
}
6228
6228
MINT_IN_CASE (MINT_CONV_OVF_I2_R4 ) {
6229
6229
float val = LOCAL_VAR (ip [2 ], float );
6230
- if (!mono_try_trunc_i2 (val , (gint16 * )(locals + ip [1 ])))
6230
+ gint16 res ;
6231
+ if (!mono_try_trunc_i2 (val , & res ))
6231
6232
THROW_EX (interp_get_exception_overflow (frame , ip ), ip );
6233
+ LOCAL_VAR (ip [1 ], gint32 ) = res ;
6232
6234
ip + = 3 ;
6233
6235
MINT_IN_BREAK ;
6234
6236
}
6235
6237
MINT_IN_CASE (MINT_CONV_OVF_I2_R8 ) {
6236
6238
double val = LOCAL_VAR (ip [2 ], double );
6237
- if (!mono_try_trunc_i2 (val , (gint16 * )(locals + ip [1 ])))
6239
+ gint16 res ;
6240
+ if (!mono_try_trunc_i2 (val , & res ))
6238
6241
THROW_EX (interp_get_exception_overflow (frame , ip ), ip );
6242
+ LOCAL_VAR (ip [1 ], gint32 ) = res ;
6239
6243
ip + = 3 ;
6240
6244
MINT_IN_BREAK ;
6241
6245
}
@@ -6257,15 +6261,19 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
6257
6261
}
6258
6262
MINT_IN_CASE (MINT_CONV_OVF_U2_R4 ) {
6259
6263
float val = LOCAL_VAR (ip [2 ], float );
6260
- if (!mono_try_trunc_u2 (val , (guint16 * )(locals + ip [1 ])))
6264
+ guint16 res ;
6265
+ if (!mono_try_trunc_u2 (val , & res ))
6261
6266
THROW_EX (interp_get_exception_overflow (frame , ip ), ip );
6267
+ LOCAL_VAR (ip [1 ], gint32 ) = res ;
6262
6268
ip + = 3 ;
6263
6269
MINT_IN_BREAK ;
6264
6270
}
6265
6271
MINT_IN_CASE (MINT_CONV_OVF_U2_R8 ) {
6266
6272
double val = LOCAL_VAR (ip [2 ], double );
6267
- if (!mono_try_trunc_u2 (val , (guint16 * )(locals + ip [1 ])))
6273
+ guint16 res ;
6274
+ if (!mono_try_trunc_u2 (val , & res ))
6268
6275
THROW_EX (interp_get_exception_overflow (frame , ip ), ip );
6276
+ LOCAL_VAR (ip [1 ], gint32 ) = res ;
6269
6277
ip + = 3 ;
6270
6278
MINT_IN_BREAK ;
6271
6279
}
@@ -6303,15 +6311,19 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
6303
6311
}
6304
6312
MINT_IN_CASE (MINT_CONV_OVF_I1_R4 ) {
6305
6313
float val = LOCAL_VAR (ip [2 ], float );
6306
- if (!mono_try_trunc_i1 (val , (gint8 * )(locals + ip [1 ])))
6314
+ gint8 res ;
6315
+ if (!mono_try_trunc_i1 (val , & res ))
6307
6316
THROW_EX (interp_get_exception_overflow (frame , ip ), ip );
6317
+ LOCAL_VAR (ip [1 ], gint32 ) = res ;
6308
6318
ip + = 3 ;
6309
6319
MINT_IN_BREAK ;
6310
6320
}
6311
6321
MINT_IN_CASE (MINT_CONV_OVF_I1_R8 ) {
6312
6322
double val = LOCAL_VAR (ip [2 ], double );
6313
- if (!mono_try_trunc_i1 (val , (gint8 * )(locals + ip [1 ])))
6323
+ gint8 res ;
6324
+ if (!mono_try_trunc_i1 (val , & res ))
6314
6325
THROW_EX (interp_get_exception_overflow (frame , ip ), ip );
6326
+ LOCAL_VAR (ip [1 ], gint32 ) = res ;
6315
6327
ip + = 3 ;
6316
6328
MINT_IN_BREAK ;
6317
6329
}
@@ -6333,15 +6345,19 @@ MINT_IN_CASE(MINT_BRTRUE_I8_SP) ZEROP_SP(gint64, !=); MINT_IN_BREAK;
6333
6345
}
6334
6346
MINT_IN_CASE (MINT_CONV_OVF_U1_R4 ) {
6335
6347
float val = LOCAL_VAR (ip [2 ], float );
6336
- if (!mono_try_trunc_u1 (val , (guint8 * )(locals + ip [1 ])))
6348
+ guint8 res ;
6349
+ if (!mono_try_trunc_u1 (val , & res ))
6337
6350
THROW_EX (interp_get_exception_overflow (frame , ip ), ip );
6351
+ LOCAL_VAR (ip [1 ], gint32 ) = res ;
6338
6352
ip + = 3 ;
6339
6353
MINT_IN_BREAK ;
6340
6354
}
6341
6355
MINT_IN_CASE (MINT_CONV_OVF_U1_R8 ) {
6342
6356
double val = LOCAL_VAR (ip [2 ], double );
6343
- if (!mono_try_trunc_u1 (val , (guint8 * )(locals + ip [1 ])))
6357
+ guint8 res ;
6358
+ if (!mono_try_trunc_u1 (val , & res ))
6344
6359
THROW_EX (interp_get_exception_overflow (frame , ip ), ip );
6360
+ LOCAL_VAR (ip [1 ], gint32 ) = res ;
6345
6361
ip + = 3 ;
6346
6362
MINT_IN_BREAK ;
6347
6363
}
0 commit comments