diff options
| author | Russ Cox <rsc@golang.org> | 2014-08-24 20:28:29 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-08-24 20:28:29 -0400 |
| commit | 6c67dd90f7734f86f0118005930f2520ef08392d (patch) | |
| tree | a9141c90e19979abb33c551a6571b4728d18d1a8 /src/pkg/runtime/error.go | |
| parent | 7dc25960b470fa34845d2c1257a9113a9133d7a4 (diff) | |
| download | go-6c67dd90f7734f86f0118005930f2520ef08392d.tar.xz | |
runtime: remove some overuse of uintptr/unsafe.Pointer
Now 'go vet runtime' only shows:
malloc.go:200: possible misuse of unsafe.Pointer
malloc.go:214: possible misuse of unsafe.Pointer
malloc.go:250: possible misuse of unsafe.Pointer
stubs.go:167: possible misuse of unsafe.Pointer
Those are all unavoidable.
LGTM=josharian
R=golang-codereviews, dvyukov, josharian
CC=dave, golang-codereviews
https://golang.org/cl/135730043
Diffstat (limited to 'src/pkg/runtime/error.go')
| -rw-r--r-- | src/pkg/runtime/error.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/error.go b/src/pkg/runtime/error.go index f379fc443a..0fe882d0fa 100644 --- a/src/pkg/runtime/error.go +++ b/src/pkg/runtime/error.go @@ -85,7 +85,7 @@ type errorCString struct{ cstr unsafe.Pointer } func (e errorCString) RuntimeError() {} func (e errorCString) Error() string { - return "runtime error: " + cstringToGo(uintptr(e.cstr)) + return "runtime error: " + cstringToGo(e.cstr) } // For calling from C. |
