diff options
-rw-r--r-- | src/keeper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keeper.c b/src/keeper.c index 86c69e2..42541cd 100644 --- a/src/keeper.c +++ b/src/keeper.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <string.h> | 41 | #include <string.h> |
42 | #include <stdio.h> | 42 | #include <stdio.h> |
43 | #include <stdlib.h> | 43 | #include <stdlib.h> |
44 | #include <stdint.h> | ||
44 | #include <ctype.h> | 45 | #include <ctype.h> |
45 | 46 | ||
46 | #include "lua.h" | 47 | #include "lua.h" |
@@ -268,7 +269,7 @@ int keepercall_receive_batched( lua_State* L) | |||
268 | fifo = prepare_fifo_access( L, 1); // fifo | 269 | fifo = prepare_fifo_access( L, 1); // fifo |
269 | if( fifo && fifo->count >= min_count) | 270 | if( fifo && fifo->count >= min_count) |
270 | { | 271 | { |
271 | fifo_pop( L, fifo, min( max_count, fifo->count)); // fifo ... | 272 | fifo_pop( L, fifo, __min( max_count, fifo->count)); // fifo ... |
272 | } | 273 | } |
273 | return lua_gettop( L) - 1; | 274 | return lua_gettop( L) - 1; |
274 | } | 275 | } |