** Error when both values are convertible to numbers, but not to integers */
| 723 | ** Error when both values are convertible to numbers, but not to integers |
| 724 | */ |
| 725 | l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) { |
| 726 | lua_Integer temp; |
| 727 | if (!tointegerns(p1, &temp)) |
| 728 | p2 = p1; |
| 729 | luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2)); |
| 730 | } |
| 731 | |
| 732 | |
| 733 | l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { |
no test coverage detected