Browse Source

bugfix : use untyped instead of cast (will coerce to int)

Nicolas Cannasse 15 years ago
parent
commit
9c0c268b3e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/flash9/utils/TypedDictionary.hx

+ 2 - 2
std/flash9/utils/TypedDictionary.hx

@@ -30,11 +30,11 @@ package flash.utils;
 class TypedDictionary<K,T> extends Dictionary {
 
 	public inline function get( k : K ) : Null<T> {
-		return this[cast k];
+		return untyped this[k];
 	}
 
 	public inline function set( k : K, v : T ) {
-		this[cast k] = v;
+		untyped this[k] = v;
 	}
 
 	public inline function exists( k : K ) {