Commit fc38d6dec3b6ea00950bd6ce6b8c6f872728d36c

Thomas de Grivel 2024-11-12T15:19:27

fix compilation on Linux

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/libkc3/buf_parse.c b/libkc3/buf_parse.c
index 4084e3f..d8a83a1 100644
--- a/libkc3/buf_parse.c
+++ b/libkc3/buf_parse.c
@@ -4381,9 +4381,10 @@ sw buf_parse_tag_void (s_buf *buf, s_tag *dest)
 sw buf_parse_time (s_buf *buf, s_time *dest)
 {
   sw r;
-  (r = buf_parse_time_as_sw(buf, dest)) > 0 ||
-    (r = buf_parse_time_as_tags(buf, dest));
-  return r;
+  if ((r = buf_parse_time_as_sw(buf, dest)) > 0 ||
+      (r = buf_parse_time_as_tags(buf, dest)))
+    return r;
+  return 0;
 }
 
 sw buf_parse_time_as_sw (s_buf *buf, s_time *dest)