From 08f4a025290ef0d0e673e4b88aa8c83342bdfe64 Mon Sep 17 00:00:00 2001 From: Ian Farmer Date: Wed, 16 Jan 2008 18:17:42 +0000 Subject: [PATCH] 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. --- src/core/org/luaj/vm/LValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/org/luaj/vm/LValue.java b/src/core/org/luaj/vm/LValue.java index dce05f83..011099eb 100644 --- a/src/core/org/luaj/vm/LValue.java +++ b/src/core/org/luaj/vm/LValue.java @@ -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