From ceaaa0cca8e02b102963730e8df25ac4fbe5f2dd Mon Sep 17 00:00:00 2001 From: Waldemar Celes Date: Tue, 11 Oct 1994 11:38:17 -0300 Subject: Correcao do tratamento de erro reportado dentro de uma funcao. --- opcode.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'opcode.c') diff --git a/opcode.c b/opcode.c index 478ec136..53f5d7d4 100644 --- a/opcode.c +++ b/opcode.c @@ -3,7 +3,7 @@ ** TecCGraf - PUC-Rio */ -char *rcs_opcode="$Id: opcode.c,v 2.7 1994/09/20 15:11:11 celes Exp celes $"; +char *rcs_opcode="$Id: opcode.c,v 2.8 1994/09/27 21:43:30 celes Exp celes $"; #include #include @@ -600,10 +600,11 @@ int lua_execute (Byte *pc) case SETFUNCTION: { - CodeWord file, func; - get_word(file,pc); + CodeCode file; + CodeWord func; + get_code(file,pc); get_word(func,pc); - if (lua_pushfunction (file.w, func.w)) + if (lua_pushfunction ((char *)file.b, func.w)) return 1; } break; -- cgit v1.2.3-55-g6feb