Skip to content

Commit

Permalink
Run fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
DustTheory committed Sep 3, 2024
1 parent 720299a commit 1cbeec8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion compiler/compile_assignment_declaration_statement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func TestIntegerAssignmentDeclarationStatement(t *testing.T) {
if blocks[0].Insts[1].LLString() != "store i32 10, i32* %1" {
t.Fatalf("Expected store instruction, got %s", blocks[0].Insts[1].LLString())
}

}

func TestBooleanAssignmentDeclarationStatement(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion compiler/compile_export_statement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ func TestExportStatement(t *testing.T) {

// TODO, just fail for now
t.Fatalf("Not implemented")

}
1 change: 0 additions & 1 deletion compiler/compile_program_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ func TestCompileEmptyProgram(t *testing.T) {
code := ``

compileAndVerifyCode(code, t)

}
1 change: 0 additions & 1 deletion compiler/compile_typed_declaration_statement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ func TestTypedDeclarationStatementInteger(t *testing.T) {
if _, ok := blocks[0].Insts[2].(*ir.InstAlloca); !ok {
t.Fatalf("Expected an alloca instruction, got %T", blocks[0].Insts[2])
}

}
1 change: 0 additions & 1 deletion runtime/type_cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ func numberCast(number *object.Number, target object.ObjectKind, castType CastTy
value = uint64(math.Float32bits(float32(number.GetUInt64())))
}
} else if object.IsFloat(number) && object.IsIntegerKind(target) { // casting from float to int

if object.IS_SIGNED[target] && object.IsFloat32(number) {
value = uint64(int64(number.GetFloat32()))
} else if object.IS_SIGNED[target] && object.IsFloat64(number) {
Expand Down

0 comments on commit 1cbeec8

Please sign in to comment.