Commit bfd2603058cad53ce9647d050284811f2025c5d2

Thomas de Grivel 2024-03-11T12:49:46

fix cast priority

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index 780e2d8..194bb8c 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -976,7 +976,7 @@ sw buf_parse_cast (s_buf *buf, s_call *dest)
   result += r;
   call_init_op_unary(&tmp);
   ident_init(&tmp.ident, module, &g_sym_cast);
-  if ((r = buf_parse_tag(buf, &tmp.arguments->tag)) <= 0)
+  if ((r = buf_parse_tag_primary(buf, &tmp.arguments->tag)) <= 0)
     goto clean;
   result += r;
   *dest = tmp;