Explorar el Código

flash compilation fixes

Nicolas Cannasse hace 10 años
padre
commit
ad58f8b053
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      std/haxe/io/Input.hx
  2. 1 1
      std/haxe/io/Output.hx

+ 1 - 1
std/haxe/io/Input.hx

@@ -190,7 +190,7 @@ class Input {
 
 
 		Endianness is specified by the `bigEndian` property.
 		Endianness is specified by the `bigEndian` property.
 	**/
 	**/
-	public inline function readFloat() : Float {
+	public #if !flash inline #end function readFloat() : Float {
 		return FPHelper.i32ToFloat(readInt32());
 		return FPHelper.i32ToFloat(readInt32());
 	}
 	}
 
 

+ 1 - 1
std/haxe/io/Output.hx

@@ -130,7 +130,7 @@ class Output {
 
 
 		Endianness is specified by the `bigEndian` property.
 		Endianness is specified by the `bigEndian` property.
 	**/
 	**/
-	public inline function writeFloat( x : Float ) {
+	public #if !flash inline #end function writeFloat( x : Float ) {
 		writeInt32(FPHelper.floatToI32(x));
 		writeInt32(FPHelper.floatToI32(x));
 	}
 	}