Browse Source

fix compilation (Java/Js)

Simon Krajewski 12 years ago
parent
commit
87ed9c4284
2 changed files with 2 additions and 2 deletions
  1. 1 1
      std/haxe/remoting/FlashJsConnection.hx
  2. 1 1
      std/java/vm/Gc.hx

+ 1 - 1
std/haxe/remoting/FlashJsConnection.hx

@@ -141,7 +141,7 @@ class FlashJsConnection #if flash implements AsyncConnection implements Dynamic<
 
 
 	static function flashCall( flashObj : String, name : String, path : String, params : String ) : String {
 	static function flashCall( flashObj : String, name : String, path : String, params : String ) : String {
 		try {
 		try {
-			var fobj : Dynamic = (untyped js.Browser.document)[__data.flash]; // FIXME(bruno): Why is this necessary?
+			var fobj : Dynamic = untyped (untyped js.Browser.document)[__data.flash]; // FIXME(bruno): Why is this necessary?
 			if( fobj == null ) fobj = js.Browser.document.getElementById(flashObj);
 			if( fobj == null ) fobj = js.Browser.document.getElementById(flashObj);
 			if( fobj == null ) throw "Could not find flash object '"+flashObj+"'";
 			if( fobj == null ) throw "Could not find flash object '"+flashObj+"'";
 			var data = null;
 			var data = null;

+ 1 - 1
std/java/vm/Gc.hx

@@ -10,6 +10,6 @@ package java.vm;
 	public static function stats() : { heap : Int, free : Int }
 	public static function stats() : { heap : Int, free : Int }
 	{
 	{
 		var r = java.lang.Runtime.getRuntime();
 		var r = java.lang.Runtime.getRuntime();
-		return { heap : r.totalMemory(), free : r.freeMemory() };
+		return { heap : cast r.totalMemory(), free : cast r.freeMemory() };
 	}
 	}
 }
 }