浏览代码

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);
 					},"{") + "}";
 				}
 			};