Affects 32-bit platforms.
Unified · Split
| @@ -3097,6 +3097,9 @@ op_err: · 3096 unmodified lines | ||
| 3097 | 3097 | #endif |
| 3098 | 3098 | type1 = vtop[-1].type; |
| 3099 | 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 | 3103 | gen_op('*'); |
| 3101 | 3104 | #ifdef CONFIG_TCC_BCHECK |
| 3102 | 3105 | if (tcc_state->do_bounds_check && !CONST_WANTED) { |