all: remove redundant type conversion

Change-Id: If63bcb8fd7610d0a052be5771062cbf4efc41355
GitHub-Last-Rev: 1739535c96132893f72cb5c40d76a11a8bbc6a94
GitHub-Pull-Request: golang/mobile#83
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/429057
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
diff --git a/bind/seq/ref.go b/bind/seq/ref.go
index 34e3653..803d692 100644
--- a/bind/seq/ref.go
+++ b/bind/seq/ref.go
@@ -78,7 +78,7 @@
 	}
 	refs.Unlock()
 
-	return int32(num)
+	return num
 }
 
 // FromRefNum returns the Ref for a refnum. If the refnum specifies a
diff --git a/exp/sprite/portable/portable.go b/exp/sprite/portable/portable.go
index 28925d1..4b6c915 100644
--- a/exp/sprite/portable/portable.go
+++ b/exp/sprite/portable/portable.go
@@ -187,7 +187,7 @@
 	// TODO(nigeltao): is the caller or callee responsible for detecting
 	// transforms that are simple copies or scales, for which there are faster
 	// implementations in the xdraw package.
-	xdraw.ApproxBiLinear.Transform(dst, m, src, srcb, xdraw.Op(op), &xdraw.Options{
+	xdraw.ApproxBiLinear.Transform(dst, m, src, srcb, op, &xdraw.Options{
 		SrcMask: mask,
 	})
 }