# # # patch "lua/lcode.cc" # from [a5582b63b0d45d33123d29699e2eba79551fa704] # to [e6eacb14c3868e1c1ed01971a2c34f47c60c0f7e] # ============================================================ --- lua/lcode.cc a5582b63b0d45d33123d29699e2eba79551fa704 +++ lua/lcode.cc e6eacb14c3868e1c1ed01971a2c34f47c60c0f7e @@ -699,7 +699,7 @@ void luaK_prefix (FuncState *fs, UnOpr o e2.t = e2.f = NO_JUMP; e2.k = VKNUM; e2.u.nval = 0; switch (op) { case OPR_MINUS: { - if (e->k == VK) + if (!isnumeral(e)) luaK_exp2anyreg(fs, e); /* cannot operate on non-numeric constants */ codearith(fs, OP_UNM, e, &e2); break;