mirror of
https://github.com/lua/lua
synced 2024-11-26 06:39:41 +03:00
macro 'addbuff' was using external variable name, instead of using
its parameter name inside the macro.
This commit is contained in:
parent
880f82d089
commit
75d5a8924c
4
lstate.c
4
lstate.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lstate.c,v 2.129 2015/07/13 13:30:03 roberto Exp roberto $
|
** $Id: lstate.c,v 2.130 2015/09/08 15:41:05 roberto Exp roberto $
|
||||||
** Global State
|
** Global State
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -76,7 +76,7 @@ typedef struct LG {
|
|||||||
*/
|
*/
|
||||||
#define addbuff(b,p,e) \
|
#define addbuff(b,p,e) \
|
||||||
{ size_t t = cast(size_t, e); \
|
{ size_t t = cast(size_t, e); \
|
||||||
memcpy(buff + p, &t, sizeof(t)); p += sizeof(t); }
|
memcpy(b + p, &t, sizeof(t)); p += sizeof(t); }
|
||||||
|
|
||||||
static unsigned int makeseed (lua_State *L) {
|
static unsigned int makeseed (lua_State *L) {
|
||||||
char buff[4 * sizeof(size_t)];
|
char buff[4 * sizeof(size_t)];
|
||||||
|
Loading…
Reference in New Issue
Block a user