summaryrefslogtreecommitdiff
path: root/libs/liblua/src/lvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/liblua/src/lvm.h')
-rw-r--r--libs/liblua/src/lvm.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/liblua/src/lvm.h b/libs/liblua/src/lvm.h
index 1bc16f3a50..2d4ac160fe 100644
--- a/libs/liblua/src/lvm.h
+++ b/libs/liblua/src/lvm.h
@@ -60,14 +60,12 @@ typedef enum {
/* convert an object to an integer (including string coercion) */
#define tointeger(o,i) \
- (l_likely(ttisinteger(o)) ? (*(i) = ivalue(o), 1) \
- : luaV_tointeger(o,i,LUA_FLOORN2I))
+ (ttisinteger(o) ? (*(i) = ivalue(o), 1) : luaV_tointeger(o,i,LUA_FLOORN2I))
/* convert an object to an integer (without string coercion) */
#define tointegerns(o,i) \
- (l_likely(ttisinteger(o)) ? (*(i) = ivalue(o), 1) \
- : luaV_tointegerns(o,i,LUA_FLOORN2I))
+ (ttisinteger(o) ? (*(i) = ivalue(o), 1) : luaV_tointegerns(o,i,LUA_FLOORN2I))
#define intop(op,v1,v2) l_castU2S(l_castS2U(v1) op l_castS2U(v2))