summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-05-03 13:01:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-05-03 13:01:57 -0300
commitad2531a0eefb6950d589c0d508b1f959f3f58d8b (patch)
tree706eca04d13655367b3743bd6a4e8c544a2b0928 /lobject.h
parentbc1c718cc02d4a0163110cb21bcbdd2985e4d28d (diff)
downloadlua-ad2531a0eefb6950d589c0d508b1f959f3f58d8b.tar.gz
lua-ad2531a0eefb6950d589c0d508b1f959f3f58d8b.tar.bz2
lua-ad2531a0eefb6950d589c0d508b1f959f3f58d8b.zip
more complete (and hopefuly more correct) handling of 'sizeof(char)'
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 bca3a6bb..8b000dc1 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.48 2011/04/05 14:24:07 roberto Exp roberto $ 2** $Id: lobject.h,v 2.49 2011/04/07 16:11:57 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*/
@@ -249,7 +249,7 @@ typedef union TString {
249 CommonHeader; 249 CommonHeader;
250 lu_byte reserved; 250 lu_byte reserved;
251 unsigned int hash; 251 unsigned int hash;
252 size_t len; 252 size_t len; /* number of characters in string */
253 } tsv; 253 } tsv;
254} TString; 254} TString;
255 255
@@ -270,7 +270,7 @@ typedef union Udata {
270 CommonHeader; 270 CommonHeader;
271 struct Table *metatable; 271 struct Table *metatable;
272 struct Table *env; 272 struct Table *env;
273 size_t len; 273 size_t len; /* number of bytes */
274 } uv; 274 } uv;
275} Udata; 275} Udata;
276 276