Fix raster.Point.String() for new Printf semantics

R=nigeltao_golang, r2
CC=golang-dev
http://codereview.appspot.com/1728041

Committer: Nigel Tao <nigeltao@golang.org>
This commit is contained in:
Roger Peppe 2010-06-18 11:19:04 +10:00
parent 9858718c4d
commit bfc68b0d61

View File

@ -30,7 +30,7 @@ func (x Fixed) String() string {
if f < 0 {
f = -f
}
return fmt.Sprintf("%d:%03d", i, f)
return fmt.Sprintf("%d:%03d", int32(i), int32(f))
}
// maxAbs returns the maximum of abs(a) and abs(b).