Browse Source

Fix Hash.exists for null values

Hugh Sanderson 15 years ago
parent
commit
a50c7d485d
1 changed files with 1 additions and 1 deletions
  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
 		#elseif neko
 		return untyped __dollar__hmem(h,key.__s,null);
 		return untyped __dollar__hmem(h,key.__s,null);
 		#elseif cpp
 		#elseif cpp
-		return untyped h.__Field(key)!=null;
+		return untyped h.__HasField(key);
 		#elseif php
 		#elseif php
 		return untyped __call__("array_key_exists", key, h);
 		return untyped __call__("array_key_exists", key, h);
 		#else
 		#else