summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index a382e69..44413a6 100644
--- a/main.c
+++ b/main.c
@@ -3,7 +3,7 @@
#include <unistd.h>
#include <pthread.h>
-int64_t sortMe[] = {9,8,7,6,5,4,3,2,1,0,22,2,39,88,56,4,42,2,5};
+int sortMe[] = {9,8,7,6,5,4,3,2,1,0,22,2,39,88,56,4,42,2,5};
#define NUM_THREADS sizeof(sortMe)/sizeof(sortMe[0])
int result[NUM_THREADS];
@@ -12,7 +12,7 @@ int counter = 0;
void *sleepMe(int64_t *p)
{
- int64_t n = *p;
+ int n = *p;
usleep(n*500);//*200 will do, but *500 is needed to reliably attain a correct order for numbers only 1 apart
pthread_mutex_lock(&lock);