lua

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

commit 90569630d6755190c5f499c51e1d0e6ef41c6cd8
parent dc0ab1e8ca38400d5d7b3a7d00ff7f6c33fdf3d3
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 29 Jan 2018 17:13:00 -0200

detail
(uses a reserved-format name for an internal type in the registry)

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

diff --git a/lauxlib.c b/lauxlib.c @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.c,v 1.290 2017/04/24 18:06:12 roberto Exp roberto $ +** $Id: lauxlib.c,v 1.291 2017/06/27 18:32:49 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -483,7 +483,7 @@ static void *newbox (lua_State *L, size_t newsize) { UBox *box = (UBox *)lua_newuserdata(L, sizeof(UBox)); box->box = NULL; box->bsize = 0; - if (luaL_newmetatable(L, "LUABOX")) { /* creating metatable? */ + if (luaL_newmetatable(L, "_UBOX*")) { /* creating metatable? */ lua_pushcfunction(L, boxgc); lua_setfield(L, -2, "__gc"); /* metatable.__gc = boxgc */ }