diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-10-20 11:11:05 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-10-20 11:11:05 -0200 |
| commit | 75d5a8924c27a5c3f60138afd9506e91b057373c (patch) | |
| tree | ecd7b622a2b624fc414882bdbdda8b9b23fcecd1 | |
| parent | 880f82d089832d27e22df3f26cfc6c508465a63a (diff) | |
| download | lua-75d5a8924c27a5c3f60138afd9506e91b057373c.tar.gz lua-75d5a8924c27a5c3f60138afd9506e91b057373c.tar.bz2 lua-75d5a8924c27a5c3f60138afd9506e91b057373c.zip | |
macro 'addbuff' was using external variable name, instead of using
its parameter name inside the macro.
| -rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 2.129 2015/07/13 13:30:03 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.130 2015/09/08 15:41:05 roberto Exp roberto $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -76,7 +76,7 @@ typedef struct LG { | |||
| 76 | */ | 76 | */ |
| 77 | #define addbuff(b,p,e) \ | 77 | #define addbuff(b,p,e) \ |
| 78 | { size_t t = cast(size_t, e); \ | 78 | { size_t t = cast(size_t, e); \ |
| 79 | memcpy(buff + p, &t, sizeof(t)); p += sizeof(t); } | 79 | memcpy(b + p, &t, sizeof(t)); p += sizeof(t); } |
| 80 | 80 | ||
| 81 | static unsigned int makeseed (lua_State *L) { | 81 | static unsigned int makeseed (lua_State *L) { |
| 82 | char buff[4 * sizeof(size_t)]; | 82 | char buff[4 * sizeof(size_t)]; |
