memhash: more correct ccall signature.