aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lanes.c')
-rw-r--r--src/lanes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lanes.c b/src/lanes.c
index 7f641c3..9b95469 100644
--- a/src/lanes.c
+++ b/src/lanes.c
@@ -630,7 +630,7 @@ LUAG_FUNC( linda_receive)
630 { 630 {
631 int is_batched; 631 int is_batched;
632 lua_pushliteral( L, BATCH_SENTINEL); 632 lua_pushliteral( L, BATCH_SENTINEL);
633 is_batched = lua_equal( L, key_i, -1); 633 is_batched = lua501_equal( L, key_i, -1);
634 lua_pop( L, 1); 634 lua_pop( L, 1);
635 if( is_batched) 635 if( is_batched)
636 { 636 {
@@ -846,7 +846,7 @@ LUAG_FUNC( linda_get)
846{ 846{
847 struct s_Linda* const linda = lua_toLinda( L, 1); 847 struct s_Linda* const linda = lua_toLinda( L, 1);
848 int pushed; 848 int pushed;
849 int count = luaL_optint( L, 3, 1); 849 lua_Integer count = luaL_optinteger( L, 3, 1);
850 luaL_argcheck( L, count >= 1, 3, "count should be >= 1"); 850 luaL_argcheck( L, count >= 1, 3, "count should be >= 1");
851 luaL_argcheck( L, lua_gettop( L) <= 3, 4, "too many arguments"); 851 luaL_argcheck( L, lua_gettop( L) <= 3, 4, "too many arguments");
852 852
@@ -1144,7 +1144,7 @@ static void* linda_id( lua_State* L, enum eDeepOp op_)
1144 1144
1145 case 2: // 2 parameters, a name and group, in that order 1145 case 2: // 2 parameters, a name and group, in that order
1146 linda_name = lua_tolstring( L, -2, &name_len); 1146 linda_name = lua_tolstring( L, -2, &name_len);
1147 linda_group = lua_tointeger( L, -1); 1147 linda_group = (unsigned long) lua_tointeger( L, -1);
1148 break; 1148 break;
1149 } 1149 }
1150 1150
@@ -1982,7 +1982,7 @@ LUAG_FUNC( get_debug_threadname)
1982 1982
1983LUAG_FUNC( set_thread_priority) 1983LUAG_FUNC( set_thread_priority)
1984{ 1984{
1985 int const prio = luaL_checkint( L, 1); 1985 int const prio = (int) luaL_checkinteger( L, 1);
1986 // public Lanes API accepts a generic range -3/+3 1986 // public Lanes API accepts a generic range -3/+3
1987 // that will be remapped into the platform-specific scheduler priority scheme 1987 // that will be remapped into the platform-specific scheduler priority scheme
1988 // On some platforms, -3 is equivalent to -2 and +3 to +2 1988 // On some platforms, -3 is equivalent to -2 and +3 to +2