diff options
| author | Russ Cox <rsc@golang.org> | 2014-08-28 10:46:59 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-08-28 10:46:59 -0400 |
| commit | 6179aca54825867db3ab15bfff28fbda73e49378 (patch) | |
| tree | ed3dc9d0aa018e90985d6ad7483ed974aa7394cf /src/pkg/runtime/error.go | |
| parent | b53b47f5ac9e11fdcd3f704bc2cb0828bdee6958 (diff) | |
| download | go-6179aca54825867db3ab15bfff28fbda73e49378.tar.xz | |
runtime: convert runtime1.goc, noasm_arm.goc to Go
LGTM=dvyukov
R=golang-codereviews, bradfitz, dvyukov
CC=golang-codereviews, iant, khr
https://golang.org/cl/135070043
Diffstat (limited to 'src/pkg/runtime/error.go')
| -rw-r--r-- | src/pkg/runtime/error.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pkg/runtime/error.go b/src/pkg/runtime/error.go index 0fe882d0fa..54591ee43e 100644 --- a/src/pkg/runtime/error.go +++ b/src/pkg/runtime/error.go @@ -97,7 +97,10 @@ type stringer interface { String() string } -func typestring(interface{}) string +func typestring(x interface{}) string { + e := (*eface)(unsafe.Pointer(&x)) + return *e._type._string +} // For calling from C. // Prints an argument passed to panic. |
