Affects 32-bit platforms.
Unified · Split
| @@ -3097,6 +3097,9 @@ op_err: · 3096 unmodified lines | |||
| 3097 | #endif | 3097 | #endif |
| 3098 | type1 = vtop[-1].type; | 3098 | type1 = vtop[-1].type; |
| 3099 | vpush_type_size(pointed_type(&vtop[-1].type), &align); | 3099 | vpush_type_size(pointed_type(&vtop[-1].type), &align); |
| 3100 | if (!(vtop[-1].type.t & VT_UNSIGNED)) { | ||
| 3101 | gen_cast_s(VT_PTRDIFF_T); | ||
| 3102 | } | ||
| 3100 | gen_op('*'); | 3103 | gen_op('*'); |
| 3101 | #ifdef CONFIG_TCC_BCHECK | 3104 | #ifdef CONFIG_TCC_BCHECK |
| 3102 | if (tcc_state->do_bounds_check && !CONST_WANTED) { | 3105 | if (tcc_state->do_bounds_check && !CONST_WANTED) { |