mirror of
https://github.com/lua/lua
synced 2025-01-11 20:09:17 +03:00
C needs "union" (unlike C++)
This commit is contained in:
parent
f36038e42a
commit
e356a43dc0
4
lstate.c
4
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user