diff --git a/src/core/org/luaj/vm2/lib/IoLib.java b/src/core/org/luaj/vm2/lib/IoLib.java index 0c2f88e9..86f40ad5 100644 --- a/src/core/org/luaj/vm2/lib/IoLib.java +++ b/src/core/org/luaj/vm2/lib/IoLib.java @@ -544,7 +544,7 @@ public class IoLib extends TwoArgFunction { } boolean isreadmode = mode.startsWith("r"); boolean isappend = mode.startsWith("a"); - boolean isupdate = mode.indexOf("+") > 0; + boolean isupdate = mode.indexOf('+') > 0; boolean isbinary = mode.endsWith("b"); return openFile( filename, isreadmode, isappend, isupdate, isbinary ); }