summaryrefslogtreecommitdiff
path: root/opcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-04-25 11:10:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-04-25 11:10:00 -0300
commitbced00ab9efcdc68982b5e3787f277b86ea3cde8 (patch)
tree85901ada4296ac533b2169b922885f7fc9d9e415 /opcode.c
parent25116a306598b8f30606552a4570f752ac141397 (diff)
downloadlua-bced00ab9efcdc68982b5e3787f277b86ea3cde8.tar.gz
lua-bced00ab9efcdc68982b5e3787f277b86ea3cde8.tar.bz2
lua-bced00ab9efcdc68982b5e3787f277b86ea3cde8.zip
lua_Reference is int, so say so.
Diffstat (limited to 'opcode.c')
-rw-r--r--opcode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcode.c b/opcode.c
index c2437a56..13d476f4 100644
--- a/opcode.c
+++ b/opcode.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_opcode="$Id: opcode.c,v 3.66 1996/03/22 19:12:15 roberto Exp roberto $"; 6char *rcs_opcode="$Id: opcode.c,v 3.67 1996/04/22 18:00:37 roberto Exp roberto $";
7 7
8#include <setjmp.h> 8#include <setjmp.h>
9#include <stdio.h> 9#include <stdio.h>
@@ -717,7 +717,7 @@ void *lua_getuserdata (lua_Object object)
717} 717}
718 718
719 719
720lua_Object lua_getref (lua_Reference ref) 720lua_Object lua_getref (int ref)
721{ 721{
722 Object *o = luaI_getref(ref); 722 Object *o = luaI_getref(ref);
723 if (o == NULL) 723 if (o == NULL)
@@ -729,7 +729,7 @@ lua_Object lua_getref (lua_Reference ref)
729} 729}
730 730
731 731
732void lua_pushref (lua_Reference ref) 732void lua_pushref (int ref)
733{ 733{
734 Object *o = luaI_getref(ref); 734 Object *o = luaI_getref(ref);
735 if (o == NULL) 735 if (o == NULL)
@@ -738,7 +738,7 @@ void lua_pushref (lua_Reference ref)
738} 738}
739 739
740 740
741lua_Reference lua_ref (int lock) 741int lua_ref (int lock)
742{ 742{
743 adjustC(1); 743 adjustC(1);
744 return luaI_ref(--top, lock); 744 return luaI_ref(--top, lock);