浏览代码

Fix Hash.exists for null values

Hugh Sanderson 15 年之前
父节点
当前提交
a50c7d485d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/Hash.hx

+ 1 - 1
std/Hash.hx

@@ -118,7 +118,7 @@ class Hash<T> #if php implements php.IteratorAggregate<T> #end {
 		#elseif neko
 		return untyped __dollar__hmem(h,key.__s,null);
 		#elseif cpp
-		return untyped h.__Field(key)!=null;
+		return untyped h.__HasField(key);
 		#elseif php
 		return untyped __call__("array_key_exists", key, h);
 		#else