소스 검색

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

Nicolas Cannasse 15 년 전
부모
커밋
9c0c268b3e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 ) {