** return 'l < r' for non-numbers. */
| 525 | ** return 'l < r' for non-numbers. |
| 526 | */ |
| 527 | static int lessthanothers (lua_State *L, const TValue *l, const TValue *r) { |
| 528 | lua_assert(!ttisnumber(l) || !ttisnumber(r)); |
| 529 | if (ttisstring(l) && ttisstring(r)) /* both are strings? */ |
| 530 | return l_strcmp(tsvalue(l), tsvalue(r)) < 0; |
| 531 | else |
| 532 | return luaT_callorderTM(L, l, r, TM_LT); |
| 533 | } |
| 534 | |
| 535 | |
| 536 | /* |
no test coverage detected