aboutsummaryrefslogtreecommitdiff
path: root/src/linda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/linda.cpp')
-rw-r--r--src/linda.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linda.cpp b/src/linda.cpp
index 4cc356a..10ee08b 100644
--- a/src/linda.cpp
+++ b/src/linda.cpp
@@ -125,7 +125,7 @@ LUAG_FUNC( linda_send)
125 enum e_cancel_request cancel = CANCEL_NONE; 125 enum e_cancel_request cancel = CANCEL_NONE;
126 int pushed; 126 int pushed;
127 time_d timeout = -1.0; 127 time_d timeout = -1.0;
128 uint_t key_i = 2; // index of first key, if timeout not there 128 int key_i = 2; // index of first key, if timeout not there
129 129
130 if( lua_type( L, 2) == LUA_TNUMBER) // we don't want to use lua_isnumber() because of autocoercion 130 if( lua_type( L, 2) == LUA_TNUMBER) // we don't want to use lua_isnumber() because of autocoercion
131 { 131 {
@@ -150,7 +150,7 @@ LUAG_FUNC( linda_send)
150 STACK_GROW( L, 1); 150 STACK_GROW( L, 1);
151 151
152 // make sure there is something to send 152 // make sure there is something to send
153 if( (uint_t)lua_gettop( L) == key_i) 153 if( lua_gettop( L) == key_i)
154 { 154 {
155 if( as_nil_sentinel) 155 if( as_nil_sentinel)
156 { 156 {
@@ -277,7 +277,7 @@ LUAG_FUNC( linda_receive)
277 keeper_api_t keeper_receive; 277 keeper_api_t keeper_receive;
278 278
279 time_d timeout = -1.0; 279 time_d timeout = -1.0;
280 uint_t key_i = 2; 280 int key_i = 2;
281 281
282 if( lua_type( L, 2) == LUA_TNUMBER) // we don't want to use lua_isnumber() because of autocoercion 282 if( lua_type( L, 2) == LUA_TNUMBER) // we don't want to use lua_isnumber() because of autocoercion
283 { 283 {