diff options
Diffstat (limited to 'src/lanes.c')
-rw-r--r-- | src/lanes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lanes.c b/src/lanes.c index 0aab244..d2c95ee 100644 --- a/src/lanes.c +++ b/src/lanes.c | |||
@@ -255,7 +255,7 @@ static void lane_cleanup( Lane* s) | |||
255 | 255 | ||
256 | { | 256 | { |
257 | AllocatorDefinition* const allocD = &s->U->internal_allocator; | 257 | AllocatorDefinition* const allocD = &s->U->internal_allocator; |
258 | allocD->allocF(allocD->allocUD, s, sizeof(Lane), 0); | 258 | (void) allocD->allocF(allocD->allocUD, s, sizeof(Lane), 0); |
259 | } | 259 | } |
260 | } | 260 | } |
261 | 261 | ||
@@ -1225,10 +1225,10 @@ LUAG_FUNC( lane_new) | |||
1225 | // 's' is allocated from heap, not Lua, since its life span may surpass the handle's (if free running thread) | 1225 | // 's' is allocated from heap, not Lua, since its life span may surpass the handle's (if free running thread) |
1226 | // | 1226 | // |
1227 | // a Lane full userdata needs a single uservalue | 1227 | // a Lane full userdata needs a single uservalue |
1228 | ud = lua_newuserdatauv( L, sizeof( Lane*), 1); // func libs priority globals package required gc_cb lane | 1228 | ud = lua_newuserdatauv( L, sizeof( Lane*), 1); // func libs priority globals package required gc_cb lane |
1229 | { | 1229 | { |
1230 | AllocatorDefinition* const allocD = &U->internal_allocator; | 1230 | AllocatorDefinition* const allocD = &U->internal_allocator; |
1231 | s = *ud = (Lane*)allocD->allocF(allocD->allocUD, NULL, 0, sizeof(Lane)); | 1231 | s = *ud = (Lane*) allocD->allocF(allocD->allocUD, NULL, 0, sizeof(Lane)); |
1232 | } | 1232 | } |
1233 | if( s == NULL) | 1233 | if( s == NULL) |
1234 | { | 1234 | { |