|
@@ -54,7 +54,7 @@ class FileOutput extends haxe.io.Output {
|
|
|
}
|
|
|
|
|
|
public function seek( p : Int, pos : FileSeek ) {
|
|
|
- file_seek(__f,p,switch( pos ) { case SeekBegin: 0; case SeekCur: 1; case SeekEnd: 2; });
|
|
|
+ file_seek(__f,p, pos == SeekBegin ? 0 : pos == SeekCur ? 1 : 2);
|
|
|
}
|
|
|
|
|
|
public function tell() : Int {
|