aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index fa38f132..744263a6 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.47 2000/10/09 13:47:32 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.48 2000/10/20 16:39:03 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -169,7 +169,7 @@ LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar,
169 L->top--; /* pop new value */ 169 L->top--; /* pop new value */
170 if (!fp) return NULL; /* `f' is not a Lua function? */ 170 if (!fp) return NULL; /* `f' is not a Lua function? */
171 name = luaF_getlocalname(fp, localnum, currentpc(f)); 171 name = luaF_getlocalname(fp, localnum, currentpc(f));
172 if (!name || name[0] == '*') return NULL; /* `*' starts private locals */ 172 if (!name || name[0] == '(') return NULL; /* `(' starts private locals */
173 *((f+1)+(localnum-1)) = *L->top; 173 *((f+1)+(localnum-1)) = *L->top;
174 return name; 174 return name;
175} 175}