From 3935610e35bbbfba7771b7fd1be93b3328ded4e4 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 9 Dec 2008 16:16:07 -0800 Subject: chans and maps of interfaces R=r DELTA=746 (729 added, 1 deleted, 16 changed) OCL=20858 CL=20858 --- src/runtime/runtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/runtime/runtime.c') 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 }; -- cgit v1.3