summaryrefslogtreecommitdiffstats
path: root/Affinity.c
diff options
context:
space:
mode:
Diffstat (limited to 'Affinity.c')
-rw-r--r--Affinity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Affinity.c b/Affinity.c
index ce30aed3..3b1e311a 100644
--- a/Affinity.c
+++ b/Affinity.c
@@ -20,9 +20,9 @@ typedef struct Affinity_ {
}*/
Affinity* Affinity_new() {
- Affinity* this = calloc(sizeof(Affinity), 1);
+ Affinity* this = calloc(1, sizeof(Affinity));
this->size = 8;
- this->cpus = calloc(sizeof(int), this->size);
+ this->cpus = calloc(this->size, sizeof(int));
return this;
}