Commit 2906adaa744cd74f0f0be94acf9fb8233c76fec3

Baptiste 2024-03-01T18:18:54

replaced useless function

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/ratio.c b/libc3/ratio.c
index 6143f42..e92f02c 100644
--- a/libc3/ratio.c
+++ b/libc3/ratio.c
@@ -127,7 +127,7 @@ s_ratio * ratio_init_1 (s_ratio *q, const char *p)
     assert(! "invalid ratio");
     return NULL;
   }
-  ratio_init_integer(q, &tmp.numerator, &tmp.denominator);
+  *q = tmp;
   return q;
 }