aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-02-10 11:39:33 +0100
committerJulian Weigt <juw@posteo.de>2026-02-10 11:39:33 +0100
commite6bff8c3821469b4475ff1ac9662093a82fae9c3 (patch)
tree1dfc850eb9f9faef11fa1a7684050df43ac54546
parent3f84820a2c0be6333c14740052e243efd06b6a9e (diff)
small fixes
-rw-r--r--charf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/charf.c b/charf.c
index cac1138..d2a42c8 100644
--- a/charf.c
+++ b/charf.c
@@ -528,7 +528,7 @@ void* compute_chunk(void* arguments){
}
i += NUM_THREADS;
}
- printf("Thread %i finished before index %llu.\n",args -> num_thread,i);
+ printf("Thread %i finished before index %lu.\n",args -> num_thread,i);
return NULL;
}
@@ -543,7 +543,7 @@ void* handle_threads(void* arguments){
}
*(args -> is_computing) = false;
printf("All calculations finished.\n\n");
- printf(args->message);
+ printf("%s",args->message);
}
int main() {