From: Heng Li Date: Wed, 9 Oct 2013 15:55:39 +0000 (-0400) Subject: bugfix: wrong integer type X-Git-Tag: spawn-final~5 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=82fd9293bb1f267a9c1ad07f7458dac826ff8771;p=klib.git bugfix: wrong integer type but it does not really matter --- diff --git a/kthread.c b/kthread.c index 7df20e2..8260db0 100644 --- 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)