accidentally broke subtraction
This commit is contained in:
@@ -690,7 +690,7 @@ obj bytecode_generator (Object) {
|
|||||||
return emit_addi(emit_not(params[0]), 1)
|
return emit_addi(emit_not(params[0]), 1)
|
||||||
} else {
|
} else {
|
||||||
if (lhs_type->indirection == 0) {
|
if (lhs_type->indirection == 0) {
|
||||||
return emit_add(params[0], params[1])
|
return emit_add(params[0], emit_addi(emit_not(params[1]), 1))
|
||||||
} else {
|
} else {
|
||||||
return emit_add(params[0], emit_addi(emit_not(emit_smul(params[1], emit_imm(type_size(lhs_type->clone_with_decreased_indirection())))), 1))
|
return emit_add(params[0], emit_addi(emit_not(emit_smul(params[1], emit_imm(type_size(lhs_type->clone_with_decreased_indirection())))), 1))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user