aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
commit0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch)
tree0ac634fed90877130b1f102bf4075af999de2158 /lstate.h
parent15231d4fb2f6984b25e0353ff46eda1a180b686d (diff)
downloadlua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.gz
lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.bz2
lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.zip
Added gcc option '-Wconversion'
No warnings for standard numerical types. Still pending alternative numerical types.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index ff86d825..aa9687ae 100644
--- a/lstate.h
+++ b/lstate.h
@@ -259,7 +259,7 @@ struct CallInfo {
259#define getcistrecst(ci) (((ci)->callstatus >> CIST_RECST) & 7) 259#define getcistrecst(ci) (((ci)->callstatus >> CIST_RECST) & 7)
260#define setcistrecst(ci,st) \ 260#define setcistrecst(ci,st) \
261 check_exp(((st) & 7) == (st), /* status must fit in three bits */ \ 261 check_exp(((st) & 7) == (st), /* status must fit in three bits */ \
262 ((ci)->callstatus = ((ci)->callstatus & ~(7 << CIST_RECST)) \ 262 ((ci)->callstatus = ((ci)->callstatus & ~(7u << CIST_RECST)) \
263 | (cast(l_uint32, st) << CIST_RECST))) 263 | (cast(l_uint32, st) << CIST_RECST)))
264 264
265 265