aboutsummaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-15 11:29:30 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-15 11:29:30 -0300
commit8f961da3dbf8c45389d1431e6dff8e44e41f1a57 (patch)
treeee67fa31c29eab0569c35c62b17f43092f60d940 /lvm.h
parent5c46b7b8cf3a71cce5572b1fca84542e24723efd (diff)
downloadlua-8f961da3dbf8c45389d1431e6dff8e44e41f1a57.tar.gz
lua-8f961da3dbf8c45389d1431e6dff8e44e41f1a57.tar.bz2
lua-8f961da3dbf8c45389d1431e6dff8e44e41f1a57.zip
macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, that
should be used only between lua_Integer and lua_Unsigned
Diffstat (limited to 'lvm.h')
-rw-r--r--lvm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lvm.h b/lvm.h
index ffda5fb2..d85c3a4e 100644
--- a/lvm.h
+++ b/lvm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.h,v 2.25 2013/12/30 20:47:58 roberto Exp roberto $ 2** $Id: lvm.h,v 2.26 2014/03/31 18:37:52 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -19,8 +19,7 @@
19#define tointeger(o,i) \ 19#define tointeger(o,i) \
20 (ttisinteger(o) ? (*(i) = ivalue(o), 1) : luaV_tointeger_(o,i)) 20 (ttisinteger(o) ? (*(i) = ivalue(o), 1) : luaV_tointeger_(o,i))
21 21
22#define intop(op,v1,v2) \ 22#define intop(op,v1,v2) cast_u2s(cast_s2u(v1) op cast_s2u(v2))
23 cast_integer(cast_unsigned(v1) op cast_unsigned(v2))
24 23
25#define luaV_rawequalobj(t1,t2) luaV_equalobj(NULL,t1,t2) 24#define luaV_rawequalobj(t1,t2) luaV_equalobj(NULL,t1,t2)
26 25