From 0a8a8b8cb6c432b75410dee70daf34030e4ce9a1 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Fri, 26 Jun 2015 00:25:06 -0700 Subject: [PATCH] exp/audio/al,cmd/gomobile: fix the broken build Change-Id: Ia2da7d987f253c11a62843f54051c9d18c1612b5 Reviewed-on: https://go-review.googlesource.com/11521 Reviewed-by: Nigel Tao --- cmd/gomobile/build_test.go | 4 ++-- exp/audio/al/alc.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gomobile/build_test.go b/cmd/gomobile/build_test.go index b3f6a4b..470696f 100644 --- a/cmd/gomobile/build_test.go +++ b/cmd/gomobile/build_test.go @@ -27,8 +27,8 @@ func TestBuild(t *testing.T) { os.Setenv("HOMEDRIVE", "C:") } cmdBuild.flag.Parse([]string{"golang.org/x/mobile/example/basic"}) - if *buildTarget != "android" { - t.Fatalf("-target=%q, want android", *buildTarget) + if buildTarget != "android" { + t.Fatalf("-target=%q, want android", buildTarget) } err := runBuild(cmdBuild) if err != nil { diff --git a/exp/audio/al/alc.go b/exp/audio/al/alc.go index 5a3700d..9212c71 100644 --- a/exp/audio/al/alc.go +++ b/exp/audio/al/alc.go @@ -59,7 +59,7 @@ func CreateContext() (*Context, error) { if ctx == nil { return nil, errors.New("al: cannot create a new context") } - return Context{ptr: ctx}, nil + return &Context{ptr: ctx}, nil } // Destroy destroys the context and frees the underlying resources.