aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2008-08-05 16:26:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2008-08-05 16:26:23 -0300
commitbb92ef23cbbdfc57828a610fb00712b6af6a6524 (patch)
treeae07b5d9fbb737e960da83cf881e73e1d7c2bd61
parentbb48f456d92077e431af489c87031373c916463a (diff)
downloadlua-bb92ef23cbbdfc57828a610fb00712b6af6a6524.tar.gz
lua-bb92ef23cbbdfc57828a610fb00712b6af6a6524.tar.bz2
lua-bb92ef23cbbdfc57828a610fb00712b6af6a6524.zip
bug: string at the end of TString must consider the entire TString
entity, not only its 'tsv' part
-rw-r--r--lobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index c5bed49c..8b60155f 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.22 2007/04/10 12:18:17 roberto Exp roberto $ 2** $Id: lobject.h,v 2.23 2008/01/30 18:05:23 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*/
@@ -208,7 +208,7 @@ typedef union TString {
208 208
209 209
210#define getstr(ts) cast(const char *, (ts) + 1) 210#define getstr(ts) cast(const char *, (ts) + 1)
211#define svalue(o) getstr(tsvalue(o)) 211#define svalue(o) getstr(rawtsvalue(o))
212 212
213 213
214 214