]> git.kaiwu.me - klib.git/commitdiff
bugfix: wrong integer type
authorHeng Li <lh3@me.com>
Wed, 9 Oct 2013 15:55:39 +0000 (11:55 -0400)
committerHeng Li <lh3@me.com>
Wed, 9 Oct 2013 15:55:39 +0000 (11:55 -0400)
but it does not really matter

kthread.c

index 7df20e2c9ad64a8f44a712d9b2a549291057b669..8260db05555930520bbd11be020ee2404cc1eaa5 100644 (file)
--- a/kthread.c
+++ b/kthread.c
@@ -81,7 +81,7 @@ typedef struct ktf_worker_t {
        int i;
 } ktf_worker_t;
 
-static inline uint64_t steal_work(kt_for_t *f) // steal work from the worker with the highest load
+static inline int steal_work(kt_for_t *f) // steal work from the worker with the highest load
 {
        int i, max = -1, max_i = -1, k = -1;
        for (i = 0; i < f->n; ++i)