diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-12-16 14:08:34 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-12-16 14:08:34 -0200 |
commit | fe8338335dfb4bf37e6b164cb55bfcc94ec6563d (patch) | |
tree | cf87169bfa5f58313b775c98cf9690d254dbbd37 | |
parent | 068d1cd1eea8a90bca09352085c8ac14b0773490 (diff) | |
download | lua-fe8338335dfb4bf37e6b164cb55bfcc94ec6563d.tar.gz lua-fe8338335dfb4bf37e6b164cb55bfcc94ec6563d.tar.bz2 lua-fe8338335dfb4bf37e6b164cb55bfcc94ec6563d.zip |
a field with value 'nil' must call the fallback 'index'
-rw-r--r-- | opcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_opcode="$Id: opcode.c,v 3.25 1994/12/13 15:54:21 roberto Exp roberto $"; | 6 | char *rcs_opcode="$Id: opcode.c,v 3.26 1994/12/16 15:56:45 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <setjmp.h> | 8 | #include <setjmp.h> |
9 | #include <stdio.h> | 9 | #include <stdio.h> |
@@ -269,7 +269,7 @@ static void pushsubscript (void) | |||
269 | else | 269 | else |
270 | { | 270 | { |
271 | Object *h = lua_hashget(avalue(top-2), top-1); | 271 | Object *h = lua_hashget(avalue(top-2), top-1); |
272 | if (h == NULL) | 272 | if (h == NULL || tag(h) == LUA_T_NIL) |
273 | do_call(&luaI_fallBacks[FB_INDEX].function, (top-stack)-2, 1, (top-stack)-2); | 273 | do_call(&luaI_fallBacks[FB_INDEX].function, (top-stack)-2, 1, (top-stack)-2); |
274 | else | 274 | else |
275 | { | 275 | { |