From bb92ef23cbbdfc57828a610fb00712b6af6a6524 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 5 Aug 2008 16:26:23 -0300 Subject: bug: string at the end of TString must consider the entire TString entity, not only its 'tsv' part --- lobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index c5bed49c..8b60155f 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.22 2007/04/10 12:18:17 roberto Exp roberto $ +** $Id: lobject.h,v 2.23 2008/01/30 18:05:23 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -208,7 +208,7 @@ typedef union TString { #define getstr(ts) cast(const char *, (ts) + 1) -#define svalue(o) getstr(tsvalue(o)) +#define svalue(o) getstr(rawtsvalue(o)) -- cgit v1.2.3-55-g6feb