mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
Added casts to uses of 'sig_atomic'
'sig_atomic' can be larger than 'int' on some platforms.
This commit is contained in:
parent
c0adc5f8a5
commit
35a87f8c5b
2 changed files with 3 additions and 3 deletions
2
ldebug.c
2
ldebug.c
|
|
@ -150,7 +150,7 @@ LUA_API lua_Hook lua_gethook (lua_State *L) {
|
|||
|
||||
|
||||
LUA_API int lua_gethookmask (lua_State *L) {
|
||||
return L->hookmask;
|
||||
return cast_int(L->hookmask);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
4
lvm.c
4
lvm.c
|
|
@ -1117,7 +1117,7 @@ void luaV_finishOp (lua_State *L) {
|
|||
|
||||
|
||||
|
||||
#define updatetrap(ci) (trap = ci->u.l.trap)
|
||||
#define updatetrap(ci) (trap = cast_int(ci->u.l.trap))
|
||||
|
||||
#define updatebase(ci) (base = ci->func.p + 1)
|
||||
|
||||
|
|
@ -1211,7 +1211,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
|
|||
#include "ljumptab.h"
|
||||
#endif
|
||||
startfunc:
|
||||
trap = L->hookmask;
|
||||
trap = cast_int(L->hookmask);
|
||||
returning: /* trap already set */
|
||||
cl = ci_func(ci);
|
||||
k = cl->p->k;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue