Commit f9058d29208003a5468b1135b5d5dbc3b65a95d9

Thomas de Grivel 2023-11-07T13:19:36

wip asan

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/tag.c b/libc3/tag.c
index 282473b..dd96e29 100644
--- a/libc3/tag.c
+++ b/libc3/tag.c
@@ -6223,7 +6223,7 @@ s_tag * tag_neg (const s_tag *tag, s_tag *result)
   case TAG_CHARACTER:
     return tag_init_s64(result, -tag->data.character);
   case TAG_INTEGER:
-    tag_init_integer_zero(result);
+    result->type = TAG_INTEGER;
     integer_neg(&tag->data.integer, &result->data.integer);
     return result;
   case TAG_SW: