You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
753 B
23 lines
753 B
9 years ago
|
--- a/src/lvm.c
|
||
|
+++ b/src/lvm.c
|
||
|
@@ -284,7 +284,8 @@ int luaV_lessthan (lua_State *L, const T
|
||
|
else
|
||
|
return luai_numlt( nvalue_fast(l), cast_num(ivalue(r)) );
|
||
|
|
||
|
- } else if ((res = call_orderTM(L, l, r, TM_LT)) != -1)
|
||
|
+ }
|
||
|
+ if ((res = call_orderTM(L, l, r, TM_LT)) != -1)
|
||
|
return res;
|
||
|
|
||
|
return luaG_ordererror(L, l, r);
|
||
|
@@ -322,7 +323,8 @@ static int lessequal (lua_State *L, cons
|
||
|
else
|
||
|
return luai_numle( nvalue_fast(l), cast_num(ivalue(r)) );
|
||
|
|
||
|
- } else if ((res = call_orderTM(L, l, r, TM_LE)) != -1) /* first try `le' */
|
||
|
+ }
|
||
|
+ if ((res = call_orderTM(L, l, r, TM_LE)) != -1) /* first try `le' */
|
||
|
return res;
|
||
|
else if ((res = call_orderTM(L, r, l, TM_LT)) != -1) /* else try `lt' */
|
||
|
return !res;
|