From 890a20b547c9a6aaa0fab2cde560acf946740cdf Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Sun, 18 Jan 2026 19:08:53 +0100 Subject: cleanup --- charf.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'charf.c') diff --git a/charf.c b/charf.c index 832a8d8..0d11f22 100644 --- a/charf.c +++ b/charf.c @@ -351,7 +351,6 @@ void* compute_chunk(void* arguments){ Args* args = arguments; int i = args -> num_thread; int* domain_current = args -> domain_current; - VALUETYPE f[N]; int d = 0; while(d >= 0){ d = compute(i, args -> exponents, args -> records_ratio, args -> records_index); @@ -363,10 +362,10 @@ void* compute_chunk(void* arguments){ } (*(args -> cont))++; if(*(args -> cont) >= NUM_THREADS) printf("Calculation finished. Press any button to stop.\n"); + return NULL; } int main() { - int num_exponents[K+1]; EXPTYPE exponents[P]; exponents[0] = int_to_exptype(1); exponents[1] = infinity_to_exptype(); @@ -377,7 +376,6 @@ int main() { int records_index[K+1][P]; for(int k=0; k<=K; k++) for(int p=0; p