** Error when both values are convertible to numbers, but not to integers */
| 612 | ** Error when both values are convertible to numbers, but not to integers |
| 613 | */ |
| 614 | void luaG_tointerror(lua_State *L, const TValue *p1, const TValue *p2) { |
| 615 | lua_Integer temp; |
| 616 | if (!tointeger(p1, &temp)) |
| 617 | p2 = p1; |
| 618 | luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2)); |
| 619 | } |
| 620 | |
| 621 | |
| 622 | void luaG_ordererror(lua_State *L, const TValue *p1, const TValue *p2) { |
no test coverage detected