Bläddra i källkod

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

Nicolas Cannasse 15 år sedan
förälder
incheckning
9c0c268b3e
1 ändrade filer med 2 tillägg och 2 borttagningar
  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 ) {