Improve compatibility with luaj 1.0

This commit is contained in:
James Roseborough
2010-04-20 14:35:14 +00:00
parent 462f95bd7f
commit 29f23222c2

View File

@@ -353,7 +353,7 @@ public class IoLib extends OneArgFunction {
typerror( i+1, "(invalid format)" ); typerror( i+1, "(invalid format)" );
} }
if ( v[i].isnil() ) if ( v[i].isnil() )
return varargsOf(v,0,i); return i==0? NIL: varargsOf(v,0,i);
} }
return varargsOf(v); return varargsOf(v);
} }