소스 검색

Lua : Misc refactoring

Justin Donaldson 9 년 전
부모
커밋
0c890355cb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      std/lua/Boot.hx

+ 2 - 2
std/lua/Boot.hx

@@ -214,9 +214,9 @@ class Boot {
 				else if (Reflect.hasField(o,"__tostring")) Lua.tostring(o);
 				else if (Reflect.hasField(o,"__class__")) printClass(o,s+1);
 				else {
-					cast(o, Table<Dynamic,Dynamic>).pairsFold(function(a,b,c){
+					(o : Table<Dynamic,Dynamic>).pairsFold(function(a,b,c){
 						if (c != "{") c+= ", ";
-						return c + __string_rec(a,s + 1) + ': ' + __string_rec(b, s + 1);
+						return c + __string_rec(a, s + 1) + ': ' + __string_rec(b, s + 1);
 					},"{") + "}";
 				}
 			};