summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-03-15 15:33:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-03-15 15:33:36 -0300
commit437a49be5eb312b97645a3c342ab90746c2674c4 (patch)
tree1125831cff0b3d65a2ce2214ca4aa8f336885a0d /lgc.c
parent4f0c716c8e5fbd58646ecf27cfeff428d568fa42 (diff)
downloadlua-437a49be5eb312b97645a3c342ab90746c2674c4.tar.gz
lua-437a49be5eb312b97645a3c342ab90746c2674c4.tar.bz2
lua-437a49be5eb312b97645a3c342ab90746c2674c4.zip
cast to avoid warnings
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index 8705ebaf..2f52a93f 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.137 2012/10/03 12:36:17 roberto Exp roberto $ 2** $Id: lgc.c,v 2.138 2012/10/19 19:00:33 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -450,7 +450,7 @@ static lu_mem traversetable (global_State *g, Table *h) {
450 else /* not weak */ 450 else /* not weak */
451 traversestrongtable(g, h); 451 traversestrongtable(g, h);
452 return sizeof(Table) + sizeof(TValue) * h->sizearray + 452 return sizeof(Table) + sizeof(TValue) * h->sizearray +
453 sizeof(Node) * sizenode(h); 453 sizeof(Node) * cast(size_t, sizenode(h));
454} 454}
455 455
456 456