summaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-01-28 13:13:26 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-01-28 13:13:26 -0200
commite2b15aa21d2f31ccc93e35f50928e26a8d9c84ce (patch)
tree0c8fe009fffa187be71ea3e268daf1a6e29d6d9a /lcode.c
parent89110986d7a9e81960261ae682780d5fd06dc4ac (diff)
downloadlua-github-e2b15aa21d2f31ccc93e35f50928e26a8d9c84ce.tar.gz
janitor work on casts
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcode.c b/lcode.c
index 7e573f02..7f240580 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
/*
-** $Id: lcode.c,v 2.150 2018/01/18 16:24:31 roberto Exp roberto $
+** $Id: lcode.c,v 2.151 2018/01/27 16:56:33 roberto Exp roberto $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -545,7 +545,7 @@ int luaK_stringK (FuncState *fs, TString *s) {
*/
static int luaK_intK (FuncState *fs, lua_Integer n) {
TValue k, o;
- setpvalue(&k, cast(void*, cast(size_t, n)));
+ setpvalue(&k, cast_voidp(cast_sizet(n)));
setivalue(&o, n);
return addk(fs, &k, &o);
}