From bf6787a531e42841b1f0695331e7d321997f218d Mon Sep 17 00:00:00 2001 From: Mark Probst Date: Thu, 14 Jan 2016 17:52:41 -0800 Subject: [PATCH] [sgen] Add necessary type cast. --- mono/metadata/sgen-mono.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mono/metadata/sgen-mono.c b/mono/metadata/sgen-mono.c index 74ee377c49a..8f86228dce1 100644 --- a/mono/metadata/sgen-mono.c +++ b/mono/metadata/sgen-mono.c @@ -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."); -- 2.25.1