From 6d69ae93fb0b2cef2f1881805280ffbe7a299c25 Mon Sep 17 00:00:00 2001
From: "paul.albuquer" <paul.albuquerque@hesge.ch>
Date: Sat, 13 Nov 2021 17:27:21 +0100
Subject: [PATCH] little adjustments to quicksort

---
 source_codes/sorting/quicksort.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source_codes/sorting/quicksort.c b/source_codes/sorting/quicksort.c
index f02bd6e..7357b69 100644
--- a/source_codes/sorting/quicksort.c
+++ b/source_codes/sorting/quicksort.c
@@ -66,7 +66,7 @@ int main(int argc,char** argv) {
    int size = atoi(argv[1]);
    int seed = atoi(argv[2]);
    srand(seed);
-   int* res = (int*)malloc(size*sizeof(int));
+   int* res = malloc(size*sizeof(int));
    for (int k=0;k<20;k++) {
       random_tab(size,res,0,100);
       print(size,res);
-- 
GitLab