浏览代码

Fixed ValueForKey issue with TPtrMap.

woollybah 10 年之前
父节点
当前提交
f2866cc47d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      map.mod/map.c

+ 2 - 2
map.mod/map.c

@@ -190,12 +190,12 @@ BBObject * bmx_map_ptrmap_valueforkey(void * key, struct tree_root ** root) {
 	struct ptrmap_node node;
 	node.key = key;
 	
-	struct ptrmap_node * found = (struct ptrmap_node *)tree_map(&node.link, compare_ptrmap_nodes, root);
+	struct ptrmap_node * found = (struct ptrmap_node *) tree_search(&node, compare_ptrmap_nodes, *root);
 	
 	if (found) {
 		return found->value;
 	}
-	
+
 	return &bbNullObject;
 }