diff options
Diffstat (limited to 'src/keeper.cpp')
-rw-r--r-- | src/keeper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/keeper.cpp b/src/keeper.cpp index 17f5df2..6fb22a9 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
@@ -59,12 +59,12 @@ | |||
59 | #define __min( a, b) (((a) < (b)) ? (a) : (b)) | 59 | #define __min( a, b) (((a) < (b)) ? (a) : (b)) |
60 | #endif // __min | 60 | #endif // __min |
61 | 61 | ||
62 | typedef struct | 62 | struct keeper_fifo |
63 | { | 63 | { |
64 | lua_Integer first; | 64 | lua_Integer first; |
65 | lua_Integer count; | 65 | lua_Integer count; |
66 | lua_Integer limit; | 66 | lua_Integer limit; |
67 | } keeper_fifo; | 67 | }; |
68 | 68 | ||
69 | static int const CONTENTS_TABLE = 1; | 69 | static int const CONTENTS_TABLE = 1; |
70 | 70 | ||
@@ -643,7 +643,7 @@ void init_keepers( Universe* U, lua_State* L) | |||
643 | (void) luaL_error( L, "Bad number of keepers (%d)", nb_keepers); | 643 | (void) luaL_error( L, "Bad number of keepers (%d)", nb_keepers); |
644 | } | 644 | } |
645 | 645 | ||
646 | // Keepers contains an array of 1 s_Keeper, adjust for the actual number of keeper states | 646 | // Keepers contains an array of 1 Keeper, adjust for the actual number of keeper states |
647 | { | 647 | { |
648 | size_t const bytes = sizeof( Keepers) + (nb_keepers - 1) * sizeof( Keeper); | 648 | size_t const bytes = sizeof( Keepers) + (nb_keepers - 1) * sizeof( Keeper); |
649 | { | 649 | { |
@@ -793,7 +793,7 @@ void keeper_toggle_nil_sentinels( lua_State* L, int val_i_, LookupMode const mod | |||
793 | * | 793 | * |
794 | * Returns: number of return values (pushed to 'L') or -1 in case of error | 794 | * Returns: number of return values (pushed to 'L') or -1 in case of error |
795 | */ | 795 | */ |
796 | int keeper_call( Universe* U, lua_State* K, keeper_api_t func_, lua_State* L, void* linda, uint_t starting_index) | 796 | int keeper_call(Universe* U, lua_State* K, keeper_api_t func_, lua_State* L, void* linda, int starting_index) |
797 | { | 797 | { |
798 | int const args = starting_index ? (lua_gettop( L) - starting_index + 1) : 0; | 798 | int const args = starting_index ? (lua_gettop( L) - starting_index + 1) : 0; |
799 | int const Ktos = lua_gettop( K); | 799 | int const Ktos = lua_gettop( K); |