diff --git a/src/runtime/map.c b/src/runtime/map.c index 93a985f15e4fb..f945e8c47b5c3 100644 --- a/src/runtime/map.c +++ b/src/runtime/map.c @@ -40,7 +40,7 @@ sys·newmap(uint32 keysize, uint32 valsize, { Hmap *m; - if(keyalg >= 2 || + if(keyalg >= 3 || valalg >= 3) { prints("0<="); sys·printint(keyalg); diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index 75d23d50d8b5f..ec2951b0af6c9 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -777,7 +777,8 @@ pointercopy(uint32 s, void **a, void **b) Alg algarray[3] = { - { &memhash, &memequal, &memprint, &memcopy }, - { &stringhash, &stringequal, &stringprint, &stringcopy }, - { &pointerhash, &pointerequal, &pointerprint, &pointercopy }, + { &memhash, &memequal, &memprint, &memcopy }, // 0 + { &stringhash, &stringequal, &stringprint, &stringcopy }, // 1 +// { &pointerhash, &pointerequal, &pointerprint, &pointercopy }, // 2 + { &memhash, &memequal, &memprint, &memcopy }, // 2 - treat pointers as ints };