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