From 25189b420de22d9088229989de265f1b81872fa8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 5 Jan 2010 16:33:26 -0200 Subject: field 'nups' in struct 'lua_Debug' changed from 'int' to 'unsigned char' to save some space (even C functions cannot have more than maxchar upvalues). --- lua.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index d3fffb11..fd13b510 100644 --- a/lua.h +++ b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.256 2009/12/22 15:32:50 roberto Exp roberto $ +** $Id: lua.h,v 1.257 2009/12/22 16:47:00 roberto Exp roberto $ ** Lua - A Scripting Language ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) ** See Copyright Notice at the end of this file @@ -404,9 +404,9 @@ struct lua_Debug { const char *what; /* (S) 'Lua', 'C', 'main', 'tail' */ const char *source; /* (S) */ int currentline; /* (l) */ - int nups; /* (u) number of upvalues */ int linedefined; /* (S) */ int lastlinedefined; /* (S) */ + unsigned char nups; /* (u) number of upvalues */ char istailcall; /* (t) */ char short_src[LUA_IDSIZE]; /* (S) */ /* private part */ -- cgit v1.2.3-55-g6feb