diff options
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r-- | src/lanes.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp index 246e772..e3f53c0 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -609,7 +609,7 @@ static int selfdestruct_gc( lua_State* L) | |||
609 | // | 609 | // |
610 | LUAG_FUNC( set_singlethreaded) | 610 | LUAG_FUNC( set_singlethreaded) |
611 | { | 611 | { |
612 | uint_t cores = luaG_optunsigned( L, 1, 1); | 612 | lua_Integer cores = luaL_optinteger(L, 1, 1); |
613 | (void) cores; // prevent "unused" warning | 613 | (void) cores; // prevent "unused" warning |
614 | 614 | ||
615 | #ifdef PLATFORM_OSX | 615 | #ifdef PLATFORM_OSX |
@@ -1048,10 +1048,10 @@ LUAG_FUNC( lane_new) | |||
1048 | char const* libs_str = lua_tostring( L, 2); | 1048 | char const* libs_str = lua_tostring( L, 2); |
1049 | bool const have_priority{ !lua_isnoneornil(L, 3) }; | 1049 | bool const have_priority{ !lua_isnoneornil(L, 3) }; |
1050 | int const priority = have_priority ? (int) lua_tointeger( L, 3) : THREAD_PRIO_DEFAULT; | 1050 | int const priority = have_priority ? (int) lua_tointeger( L, 3) : THREAD_PRIO_DEFAULT; |
1051 | uint_t const globals_idx = lua_isnoneornil( L, 4) ? 0 : 4; | 1051 | int const globals_idx = lua_isnoneornil( L, 4) ? 0 : 4; |
1052 | uint_t const package_idx = lua_isnoneornil( L, 5) ? 0 : 5; | 1052 | int const package_idx = lua_isnoneornil(L, 5) ? 0 : 5; |
1053 | uint_t const required_idx = lua_isnoneornil( L, 6) ? 0 : 6; | 1053 | int const required_idx = lua_isnoneornil(L, 6) ? 0 : 6; |
1054 | uint_t const gc_cb_idx = lua_isnoneornil( L, 7) ? 0 : 7; | 1054 | int const gc_cb_idx = lua_isnoneornil(L, 7) ? 0 : 7; |
1055 | 1055 | ||
1056 | #define FIXED_ARGS 7 | 1056 | #define FIXED_ARGS 7 |
1057 | int const nargs = lua_gettop(L) - FIXED_ARGS; | 1057 | int const nargs = lua_gettop(L) - FIXED_ARGS; |
@@ -1456,7 +1456,7 @@ LUAG_FUNC( thread_join) | |||
1456 | { | 1456 | { |
1457 | case DONE: | 1457 | case DONE: |
1458 | { | 1458 | { |
1459 | uint_t n = lua_gettop( L2); // whole L2 stack | 1459 | int n = lua_gettop( L2); // whole L2 stack |
1460 | if( (n > 0) && (luaG_inter_move( U, L2, L, n, eLM_LaneBody) != 0)) | 1460 | if( (n > 0) && (luaG_inter_move( U, L2, L, n, eLM_LaneBody) != 0)) |
1461 | { | 1461 | { |
1462 | return luaL_error( L, "tried to copy unsupported types"); | 1462 | return luaL_error( L, "tried to copy unsupported types"); |