diff --git a/engine/lists.c b/engine/lists.c
index e982719..44b3785 100644
|
a
|
b
|
LIST * list_new( OBJECT * value )
|
| 107 | 107 | { |
| 108 | 108 | LIST * const head = list_alloc( 1 ) ; |
| 109 | 109 | head->impl.size = 1; |
| 110 | | list_begin( head )[ 0 ] = value; |
| | 110 | list_begin( head )[ 0 ] = object_copy( value ); |
| 111 | 111 | return head; |
| 112 | 112 | } |
| 113 | 113 | |
| … |
… |
LIST * list_push_back( LIST * head, OBJECT * value )
|
| 136 | 136 | head = l; |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | | list_begin( head )[ size ] = value; |
| | 139 | list_begin( head )[ size ] = object_copy( value ); |
| 140 | 140 | head->impl.size = size + 1; |
| 141 | 141 | |
| 142 | 142 | return head; |