diff options
Diffstat (limited to 'opcode.c')
-rw-r--r-- | opcode.c | 7 |
1 files changed, 5 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.22 1994/11/23 14:31:11 roberto Stab roberto $"; | 6 | char *rcs_opcode="$Id: opcode.c,v 3.23 1994/11/30 21:20:37 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <setjmp.h> | 8 | #include <setjmp.h> |
9 | #include <stdio.h> | 9 | #include <stdio.h> |
@@ -803,7 +803,10 @@ static int lua_execute (Byte *pc, int base) | |||
803 | 803 | ||
804 | case PUSHSELF: | 804 | case PUSHSELF: |
805 | { | 805 | { |
806 | Object receiver = *(top-2); | 806 | Object receiver = *(top-1); |
807 | CodeWord code; | ||
808 | get_word(code,pc); | ||
809 | tag(top) = LUA_T_STRING; tsvalue(top++) = lua_constant[code.w]; | ||
807 | pushsubscript(); | 810 | pushsubscript(); |
808 | *(top++) = receiver; | 811 | *(top++) = receiver; |
809 | break; | 812 | break; |