aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-09 16:16:07 -0800
committerRuss Cox <rsc@golang.org>2008-12-09 16:16:07 -0800
commit3935610e35bbbfba7771b7fd1be93b3328ded4e4 (patch)
tree14c9af3295825fd30d1352eb9c82d59fd608810f /src/runtime/runtime.c
parent50d0695ccff6391d1506173b53069d1601c504c0 (diff)
downloadgo-3935610e35bbbfba7771b7fd1be93b3328ded4e4.tar.xz
chans and maps of interfaces
R=r DELTA=746 (729 added, 1 deleted, 16 changed) OCL=20858 CL=20858
Diffstat (limited to 'src/runtime/runtime.c')
-rw-r--r--src/runtime/runtime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c
index baf6eb68b9..3d0ee7f1e6 100644
--- a/src/runtime/runtime.c
+++ b/src/runtime/runtime.c
@@ -644,11 +644,12 @@ pointercopy(uint32 s, void **a, void **b)
}
Alg
-algarray[3] =
+algarray[4] =
{
{ memhash, memequal, memprint, memcopy }, // 0
{ stringhash, stringequal, stringprint, stringcopy }, // 1
// { pointerhash, pointerequal, pointerprint, pointercopy }, // 2
{ memhash, memequal, memprint, memcopy }, // 2 - treat pointers as ints
+ { memhash, memequal, memprint, memcopy }, // 3 - treat interfaces as memory
};