[sgen] Add necessary type cast.
authorMark Probst <mark.probst@gmail.com>
Fri, 15 Jan 2016 01:52:41 +0000 (17:52 -0800)
committerMark Probst <mark.probst@gmail.com>
Fri, 12 Feb 2016 18:03:34 +0000 (10:03 -0800)
mono/metadata/sgen-mono.c

index 74ee377c49a8eb5f2275bbc7f8f2e9539398b801..8f86228dce17bece01892b1e24934f67aa7af264 100644 (file)
@@ -2738,7 +2738,7 @@ sgen_client_degraded_allocation (size_t size)
        static int last_major_gc_warned = -1;
        static int num_degraded = 0;
 
-       if (last_major_gc_warned < gc_stats.major_gc_count) {
+       if (last_major_gc_warned < (int)gc_stats.major_gc_count) {
                ++num_degraded;
                if (num_degraded == 1 || num_degraded == 3)
                        mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_GC, "Warning: Degraded allocation.  Consider increasing nursery-size if the warning persists.");