** Error when both values are convertible to numbers, but not to integers */
| 776 | ** Error when both values are convertible to numbers, but not to integers |
| 777 | */ |
| 778 | l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) { |
| 779 | lua_Integer temp; |
| 780 | if (!luaV_tointegerns(p1, &temp, LUA_FLOORN2I)) |
| 781 | p2 = p1; |
| 782 | luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2)); |
| 783 | } |
| 784 | |
| 785 | |
| 786 | l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { |
no test coverage detected