diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2021-01-19 13:38:55 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-01-28 14:36:48 -0500 |
commit | 644e80fe5c6b08199c19468f98fd224392686c2c (patch) | |
tree | f78144bd7730563490c68ef47ef83640bc9a63c9 /rts/sm | |
parent | 7b0b133dcf7a58097d140c011ce8b83b4d250a88 (diff) | |
download | haskell-644e80fe5c6b08199c19468f98fd224392686c2c.tar.gz |
rts: sm/GC.c: make num_idle unsigned
We compare it to n_gc_idle_threads which is unsigned as well.
So make both signed to avoid a warning.
Diffstat (limited to 'rts/sm')
-rw-r--r-- | rts/sm/GC.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/GC.c b/rts/sm/GC.c index 4ddbcfdafd..0f9a9eaa84 100644 --- a/rts/sm/GC.c +++ b/rts/sm/GC.c @@ -1462,7 +1462,7 @@ wakeup_gc_threads (uint32_t me USED_IF_THREADS, if (n_gc_threads == 1) return; #if defined(DEBUG) - StgInt num_idle = 0; + StgWord num_idle = 0; for(i=0; i < n_gc_threads; ++i) { ASSERT(!(i==me && idle_cap[i])); if (idle_cap[i]) { ++num_idle;} |