From 17dbaa8639505c9ad1a9946591f5960123fbd741 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 22 May 2020 11:40:34 -0300 Subject: Improvements in the handling of signals Added 'volatile' to 'l_signalT' variables plus some minor changes. --- lstate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index df9148eb..2e8bd6c4 100644 --- a/lstate.h +++ b/lstate.h @@ -173,7 +173,7 @@ typedef struct CallInfo { union { struct { /* only for Lua functions */ const Instruction *savedpc; - l_signalT trap; + volatile l_signalT trap; int nextraargs; /* # of extra arguments in vararg functions */ } l; struct { /* only for C functions */ @@ -300,7 +300,7 @@ struct lua_State { int stacksize; int basehookcount; int hookcount; - l_signalT hookmask; + volatile l_signalT hookmask; }; -- cgit v1.2.3-55-g6feb