aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-29 15:24:05 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-29 15:24:05 -0200
commit92f02fff1184f0e6f553bbddb4dca39b4358020e (patch)
tree11965efd3162955de973bafef2d16d754a1f92da
parent125296c83db4953a10410f7f01b0dada598af6aa (diff)
downloadlua-92f02fff1184f0e6f553bbddb4dca39b4358020e.tar.gz
lua-92f02fff1184f0e6f553bbddb4dca39b4358020e.tar.bz2
lua-92f02fff1184f0e6f553bbddb4dca39b4358020e.zip
bug: lua_tounsignedx must cast to lua_Unsigned (of course...)
-rw-r--r--lua.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index ba9e421c..3a7e962c 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.321 2014/11/12 13:30:15 roberto Exp roberto $ 2** $Id: lua.h,v 1.322 2014/11/28 19:13:39 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -382,7 +382,7 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
382#if defined(LUA_COMPAT_APIINTCASTS) 382#if defined(LUA_COMPAT_APIINTCASTS)
383 383
384#define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n)) 384#define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n))
385#define lua_tounsignedx(L,i,is) ((lua_Integer)lua_tointegerx(L,i,is)) 385#define lua_tounsignedx(L,i,is) ((lua_Unsigned)lua_tointegerx(L,i,is))
386#define lua_tounsigned(L,i) lua_tounsignedx(L,(i),NULL) 386#define lua_tounsigned(L,i) lua_tounsignedx(L,(i),NULL)
387 387
388#endif 388#endif