Improve iolib test.

This commit is contained in:
James Roseborough
2012-09-19 05:37:39 +00:00
parent 0f70a8e962
commit a8aeddfc60
3 changed files with 10 additions and 1 deletions

View File

@@ -469,7 +469,7 @@ public class IoLib extends OneArgFunction {
private static Varargs iowrite(File f, Varargs args) throws IOException {
for ( int i=1, n=args.narg(); i<=n; i++ )
f.write( args.checkstring(i) );
return LuaValue.TRUE;
return f;
}
private Varargs ioread(File f, Varargs args) throws IOException {