Browse Source

Lua : Misc refactoring

Justin Donaldson 9 years ago
parent
commit
0c890355cb
1 changed files with 2 additions and 2 deletions
  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);
 					},"{") + "}";
 				}
 			};