aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lobject.h b/lobject.h
index 05008668..e49f8dcc 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.95 2014/07/17 17:09:50 roberto Exp roberto $ 2** $Id: lobject.h,v 2.96 2014/07/17 17:27:49 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -210,12 +210,12 @@ typedef struct lua_TValue TValue;
210 210
211#define setsvalue(L,obj,x) \ 211#define setsvalue(L,obj,x) \
212 { TValue *io = (obj); TString *x_ = (x); \ 212 { TValue *io = (obj); TString *x_ = (x); \
213 val_(io).gc = obj2gco(x_); settt_(io, ctb(x_->tsv.tt)); \ 213 val_(io).gc = obj2gco(&x_->tsv); settt_(io, ctb(x_->tsv.tt)); \
214 checkliveness(G(L),io); } 214 checkliveness(G(L),io); }
215 215
216#define setuvalue(L,obj,x) \ 216#define setuvalue(L,obj,x) \
217 { TValue *io = (obj); Udata *x_ = (x); \ 217 { TValue *io = (obj); Udata *x_ = (x); \
218 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_TUSERDATA)); \ 218 val_(io).gc = obj2gco(&x_->uv); settt_(io, ctb(LUA_TUSERDATA)); \
219 checkliveness(G(L),io); } 219 checkliveness(G(L),io); }
220 220
221#define setthvalue(L,obj,x) \ 221#define setthvalue(L,obj,x) \