aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/iface.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/iface.go')
-rw-r--r--src/runtime/iface.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/iface.go b/src/runtime/iface.go
index e280180665..28eb8fb5ec 100644
--- a/src/runtime/iface.go
+++ b/src/runtime/iface.go
@@ -391,7 +391,7 @@ func convT64(val uint64) (x unsafe.Pointer) {
func convTstring(val string) (x unsafe.Pointer) {
if val == "" {
- x = unsafe.Pointer(&zeroVal[0])
+ x = unsafe.Pointer(&abi.ZeroVal[0])
} else {
x = mallocgc(unsafe.Sizeof(val), stringType, true)
*(*string)(x) = val
@@ -402,7 +402,7 @@ func convTstring(val string) (x unsafe.Pointer) {
func convTslice(val []byte) (x unsafe.Pointer) {
// Note: this must work for any element type, not just byte.
if (*slice)(unsafe.Pointer(&val)).array == nil {
- x = unsafe.Pointer(&zeroVal[0])
+ x = unsafe.Pointer(&abi.ZeroVal[0])
} else {
x = mallocgc(unsafe.Sizeof(val), sliceType, true)
*(*[]byte)(x) = val