aboutsummaryrefslogtreecommitdiff
path: root/src/linda.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linda.c')
-rw-r--r--src/linda.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/linda.c b/src/linda.c
index 390816b..8b59790 100644
--- a/src/linda.c
+++ b/src/linda.c
@@ -797,8 +797,7 @@ static void* linda_id( lua_State* L, DeepOp op_)
797 { 797 {
798 Universe* const U = universe_get(L); 798 Universe* const U = universe_get(L);
799 AllocatorDefinition* const allocD = &U->internal_allocator; 799 AllocatorDefinition* const allocD = &U->internal_allocator;
800 800 s = (struct s_Linda*) allocD->allocF(allocD->allocUD, NULL, 0, sizeof(struct s_Linda) + name_len); // terminating 0 is already included
801 s = (struct s_Linda*)allocD->allocF(allocD->allocUD, NULL, 0, sizeof(struct s_Linda) + name_len); // terminating 0 is already included
802 } 801 }
803 if( s) 802 if( s)
804 { 803 {
@@ -835,8 +834,7 @@ static void* linda_id( lua_State* L, DeepOp op_)
835 { 834 {
836 Universe* const U = universe_get(L); 835 Universe* const U = universe_get(L);
837 AllocatorDefinition* const allocD = &U->internal_allocator; 836 AllocatorDefinition* const allocD = &U->internal_allocator;
838 837 (void) allocD->allocF(allocD->allocUD, linda, sizeof(struct s_Linda) + strlen(linda->name), 0);
839 allocD->allocF(allocD->allocUD, linda, sizeof(struct s_Linda) + strlen(linda->name), 0);
840 } 838 }
841 return NULL; 839 return NULL;
842 } 840 }