summaryrefslogtreecommitdiff
path: root/ratio.c
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2025-12-23 17:14:54 +0000
committerJulian Weigt <juw@posteo.de>2026-02-04 15:55:46 +0100
commitb43f9d38196080333680681766b6f23f024c0cb0 (patch)
treec82c1b8eecc5c5a1434e58f910e25203b305c6dc /ratio.c
parentedcded21cbeb272ff206a92c693ab21bf33ebae6 (diff)
Reorganize mallocs to get ready for multithreading.
Diffstat (limited to 'ratio.c')
-rw-r--r--ratio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratio.c b/ratio.c
index 70a198a..c2eef00 100644
--- a/ratio.c
+++ b/ratio.c
@@ -5,7 +5,7 @@
typedef unsigned long long num;
-typedef struct {bool s; num n; num d} rational;
+typedef struct {bool s; num n; num d;} rational;
unsigned int safe_sum(num n1, num n2){
if(n2 > ULLONG_MAX-n1){