diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2021-01-19 13:38:55 +0100 |
---|---|---|
committer | Andreas Klebinger <klebinger.andreas@gmx.at> | 2021-01-25 07:45:12 -0500 |
commit | 51cc33a3f0d5cbd8dc49180221f09e4e9aafb1f4 (patch) | |
tree | c77052f2c29b75b79bccaafc0be40262c7e87aa6 | |
parent | 34a8a0e4cf188a30d2b4b65909f24185c80d071e (diff) | |
download | haskell-51cc33a3f0d5cbd8dc49180221f09e4e9aafb1f4.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.
-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;} |