diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-03 13:02:48 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-03 13:02:48 -0400 |
| commit | 97f8386af7907191cefbbfa26a3bd01c4ec95655 (patch) | |
| tree | 7c0fb064931669a113be5d07492c4b510dae7169 /src/pkg/runtime/error.go | |
| parent | 4930a8d0582d96d390339d2ca454ff8375bb535a (diff) | |
| download | go-97f8386af7907191cefbbfa26a3bd01c4ec95655.tar.xz | |
runtime: convert symtab.c into symtab.go
Because symtab.c was partially converted before,
the diffs are not terribly useful.
The earlier conversion was trying to refactor or
clean up the code in addition to doing the translation.
It also made a mistake by redefining Func to be something
users could overwrite.
I undid those changes, making symtab.go a more
literal line-for-line translation of symtab.c instead.
LGTM=josharian
R=golang-codereviews, dave, bradfitz, josharian
CC=golang-codereviews, iant, khr, r
https://golang.org/cl/140880043
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 54591ee43e..3ea93680ce 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(e.cstr) + return "runtime error: " + gostringnocopy((*byte)(e.cstr)) } // For calling from C. |
