diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-01 16:22:56 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-01 16:22:56 -0200 |
| commit | af850484a9e01b46b04e4c666f9a9e91308d81c7 (patch) | |
| tree | 38d03f647ddc95d430e4600e432598b7b9d07cd0 /lstring.c | |
| parent | 1d10acb35500df47d6052164e6c56476f520232e (diff) | |
| download | lua-af850484a9e01b46b04e4c666f9a9e91308d81c7.tar.gz lua-af850484a9e01b46b04e4c666f9a9e91308d81c7.tar.bz2 lua-af850484a9e01b46b04e4c666f9a9e91308d81c7.zip | |
default metatable can be NULL
Diffstat (limited to 'lstring.c')
| -rw-r--r-- | lstring.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstring.c,v 1.79 2003/04/28 19:26:16 roberto Exp roberto $ | 2 | ** $Id: lstring.c,v 1.80 2003/11/17 19:50:05 roberto Exp roberto $ |
| 3 | ** String table (keeps all strings handled by Lua) | 3 | ** String table (keeps all strings handled by Lua) |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -94,7 +94,7 @@ Udata *luaS_newudata (lua_State *L, size_t s) { | |||
| 94 | u->uv.marked = 0; /* is not finalized */ | 94 | u->uv.marked = 0; /* is not finalized */ |
| 95 | u->uv.tt = LUA_TUSERDATA; | 95 | u->uv.tt = LUA_TUSERDATA; |
| 96 | u->uv.len = s; | 96 | u->uv.len = s; |
| 97 | u->uv.metatable = hvalue(defaultmeta(L)); | 97 | u->uv.metatable = NULL; |
| 98 | /* chain it on udata list */ | 98 | /* chain it on udata list */ |
| 99 | u->uv.next = G(L)->rootudata; | 99 | u->uv.next = G(L)->rootudata; |
| 100 | G(L)->rootudata = valtogco(u); | 100 | G(L)->rootudata = valtogco(u); |
