| ... | ... | @@ -1166,9 +1166,12 @@ static bool is_op_allowed(TypeTableEntry *type, BinOpType op) { |
| 1166 | 1166 | case BinOpTypeAssignTimes: |
| 1167 | 1167 | case BinOpTypeAssignDiv: |
| 1168 | 1168 | case BinOpTypeAssignMod: |
| 1169 | return type->id == TypeTableEntryIdInt || type->id == TypeTableEntryIdFloat; |
| 1169 | 1170 | case BinOpTypeAssignPlus: |
| 1170 | 1171 | case BinOpTypeAssignMinus: |
| 1171 | | return type->id == TypeTableEntryIdInt || type->id == TypeTableEntryIdFloat; |
| 1172 | return type->id == TypeTableEntryIdInt || |
| 1173 | type->id == TypeTableEntryIdFloat || |
| 1174 | type->id == TypeTableEntryIdPointer; |
| 1172 | 1175 | case BinOpTypeAssignBitShiftLeft: |
| 1173 | 1176 | case BinOpTypeAssignBitShiftRight: |
| 1174 | 1177 | case BinOpTypeAssignBitAnd: |