diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-04-25 11:10:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-04-25 11:10:00 -0300 |
commit | bced00ab9efcdc68982b5e3787f277b86ea3cde8 (patch) | |
tree | 85901ada4296ac533b2169b922885f7fc9d9e415 /opcode.c | |
parent | 25116a306598b8f30606552a4570f752ac141397 (diff) | |
download | lua-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.c | 8 |
1 files changed, 4 insertions, 4 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.66 1996/03/22 19:12:15 roberto Exp roberto $"; | 6 | char *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 | ||
720 | lua_Object lua_getref (lua_Reference ref) | 720 | lua_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 | ||
732 | void lua_pushref (lua_Reference ref) | 732 | void 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 | ||
741 | lua_Reference lua_ref (int lock) | 741 | int lua_ref (int lock) |
742 | { | 742 | { |
743 | adjustC(1); | 743 | adjustC(1); |
744 | return luaI_ref(--top, lock); | 744 | return luaI_ref(--top, lock); |