瀏覽代碼

no inline on haxe.io base classes (they should be overridable)

Nicolas Cannasse 9 年之前
父節點
當前提交
aab4134e8e
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      std/haxe/io/Input.hx
  2. 1 1
      std/haxe/io/Output.hx

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

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

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

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