Commit 0a1634107e2f646b8c9840298672adf0c0545ba0

Thomas de Grivel 2024-07-03T20:00:39

one instruction per line

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/libc3/data.c b/libc3/data.c
index f3456cc..2828f5b 100644
--- a/libc3/data.c
+++ b/libc3/data.c
@@ -657,8 +657,9 @@ void * data_init_copy (const s_sym *type, void *data, const void *src)
   if (! struct_type_find(type, &st))
     return NULL;
   if (st) {
-    t.type = s.type = st;
+    s.type = st;
     s.data = data;
+    t.type = st;
     t.data = (void *) src;
     return struct_init_copy(&s, &t);
   }