lua

A copy of the Lua development repository
Log | Files | Refs | README

commit e356a43dc0e6de6ee272188af0d37997b0adf635
parent f36038e42a1c6d4920ee01b31a59946b6df07a05
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri, 25 Oct 2002 18:29:38 -0300

C needs "union" (unlike C++)

Diffstat:
Mlstate.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lstate.c b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.107 2002/10/22 17:58:14 roberto Exp roberto $ +** $Id: lstate.c,v 1.108 2002/10/25 20:05:28 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -26,7 +26,7 @@ #define EXTRASPACE 0 #else union UEXTRASPACE {L_Umaxalign a; LUA_USERSTATE b;}; -#define EXTRASPACE (sizeof(UEXTRASPACE)) +#define EXTRASPACE (sizeof(union UEXTRASPACE)) #endif