aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lapi.c b/lapi.c
index 86c75d51..f76c6e61 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,12 +1,10 @@
1/* 1/*
2** $Id: lapi.c,v 2.64 2008/02/12 13:34:12 roberto Exp roberto $ 2** $Id: lapi.c,v 2.65 2008/02/14 16:02:58 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
6 6
7 7
8#include <assert.h>
9#include <math.h>
10#include <stdarg.h> 8#include <stdarg.h>
11#include <string.h> 9#include <string.h>
12 10
@@ -698,8 +696,10 @@ LUA_API int lua_setmetatable (lua_State *L, int objindex) {
698 } 696 }
699 case LUA_TUSERDATA: { 697 case LUA_TUSERDATA: {
700 uvalue(obj)->metatable = mt; 698 uvalue(obj)->metatable = mt;
701 if (mt) 699 if (mt) {
702 luaC_objbarrier(L, rawuvalue(obj), mt); 700 luaC_objbarrier(L, rawuvalue(obj), mt);
701 luaC_checkfinalizer(L, rawuvalue(obj));
702 }
703 break; 703 break;
704 } 704 }
705 default: { 705 default: {