Commit c66291a2689d44cdc1fc4a003dbb95d7a1dab613

Thomas de Grivel 2023-10-21T01:27:09

wip operators

diff --git a/libc3/buf_inspect.c b/libc3/buf_inspect.c
index 8edff5b..61c5e36 100644
--- a/libc3/buf_inspect.c
+++ b/libc3/buf_inspect.c
@@ -344,6 +344,7 @@ sw buf_inspect_call_brackets (s_buf *buf, const s_call *call)
 
 sw buf_inspect_call_op (s_buf *buf, const s_call *call, s8 op_precedence)
 {
+  s_ident ident;
   s_tag *left;
   bool paren;
   s8 precedence;
@@ -375,7 +376,9 @@ sw buf_inspect_call_op (s_buf *buf, const s_call *call, s8 op_precedence)
   if ((r = buf_write_1(buf, " ")) < 0)
     return r;
   result += r;
-  if ((r = buf_inspect_ident(buf, &call->ident)) < 0)
+  if (! operator_ident(&call->ident, &ident))
+    return -1;
+  if ((r = buf_inspect_ident(buf, &ident)) < 0)
     return r;
   result += r;
   if ((r = buf_write_1(buf, " ")) < 0)