diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -541,11 +541,6 @@ int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r) { | |||
541 | 541 | ||
542 | /* | 542 | /* |
543 | ** return 'l <= r' for non-numbers. | 543 | ** return 'l <= r' for non-numbers. |
544 | ** If it needs a metamethod and there is no '__le', try '__lt', based | ||
545 | ** on l <= r iff !(r < l) (assuming a total order). If the metamethod | ||
546 | ** yields during this substitution, the continuation has to know about | ||
547 | ** it (to negate the result of r<l); bit CIST_LEQ in the call status | ||
548 | ** keeps that information. | ||
549 | */ | 544 | */ |
550 | static int lessequalothers (lua_State *L, const TValue *l, const TValue *r) { | 545 | static int lessequalothers (lua_State *L, const TValue *l, const TValue *r) { |
551 | lua_assert(!ttisnumber(l) || !ttisnumber(r)); | 546 | lua_assert(!ttisnumber(l) || !ttisnumber(r)); |
@@ -986,7 +981,9 @@ void luaV_finishOp (lua_State *L) { | |||
986 | 981 | ||
987 | 982 | ||
988 | /* | 983 | /* |
989 | ** Order operations with register operands. | 984 | ** Order operations with register operands. 'opf' actually works |
985 | ** for all numbers, but the fast track improves performance for | ||
986 | ** integers. | ||
990 | */ | 987 | */ |
991 | #define op_order(L,opi,opf,other) { \ | 988 | #define op_order(L,opi,opf,other) { \ |
992 | int cond; \ | 989 | int cond; \ |