Fix error reporting in LValue.luaBinOpUnknown.

Since this method always fails with an error message, it should report its
own type, rather than the type of the other object, in the message.
This commit is contained in:
Ian Farmer
2008-01-16 18:17:42 +00:00
parent 4e239b6c46
commit 08f4a02529

View File

@@ -68,7 +68,7 @@ public class LValue {
// unsupported except for numbers
public LValue luaBinOpUnknown(int opcode, LValue lhs) {
return arithmeticError(lhs.luaGetTypeName());
return arithmeticError(luaGetTypeName());
}
// unsupported except for numbers