diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-11 16:45:27 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-11 16:45:27 -0300 |
commit | 2779e81fbbdebf8b7cac97c167ff109bad537c4b (patch) | |
tree | c974209192b1380b9e6c7884f923647041f4d8fa /ltm.c | |
parent | 30f6e658d2071d23309e4ac70dd8ec199049aff4 (diff) | |
download | lua-2779e81fbbdebf8b7cac97c167ff109bad537c4b.tar.gz lua-2779e81fbbdebf8b7cac97c167ff109bad537c4b.tar.bz2 lua-2779e81fbbdebf8b7cac97c167ff109bad537c4b.zip |
API functions check stack overflow
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.46 2000/08/09 19:16:57 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.47 2000/09/05 19:33:32 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -11,6 +11,7 @@ | |||
11 | #include "lua.h" | 11 | #include "lua.h" |
12 | 12 | ||
13 | #include "lauxlib.h" | 13 | #include "lauxlib.h" |
14 | #include "ldo.h" | ||
14 | #include "lmem.h" | 15 | #include "lmem.h" |
15 | #include "lobject.h" | 16 | #include "lobject.h" |
16 | #include "lstate.h" | 17 | #include "lstate.h" |
@@ -127,7 +128,7 @@ void lua_gettagmethod (lua_State *L, int t, const char *event) { | |||
127 | *L->top = *luaT_getim(L, t,e); | 128 | *L->top = *luaT_getim(L, t,e); |
128 | else | 129 | else |
129 | ttype(L->top) = TAG_NIL; | 130 | ttype(L->top) = TAG_NIL; |
130 | L->top++; | 131 | incr_top; |
131 | } | 132 | } |
132 | 133 | ||
133 | 134 | ||