From: Ivan Maidanski Date: Thu, 20 Apr 2017 08:26:11 +0000 (+0300) Subject: Eliminate 'signed/unsigned mismatch' compiler warning in gctest (MS VC) X-Git-Tag: v7.4.6~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56e5492e91c3a42a25f63c9d8daf36627d2babd7;p=gc Eliminate 'signed/unsigned mismatch' compiler warning in gctest (MS VC) (fix commit 014d92d) * tests/test.c (bm_huge): Add explicit casts of GC_signed_word values to GC_word. --- diff --git a/tests/test.c b/tests/test.c index 37c65ccc..cc363ae0 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1020,10 +1020,10 @@ const GC_word bm_huge[320 / CPP_WORDSZ] = { 0xffffffff, 0xffffffff, # endif - (GC_signed_word)-1, - (GC_signed_word)-1, - (GC_signed_word)-1, - (GC_signed_word)-1, + (GC_word)((GC_signed_word)-1), + (GC_word)((GC_signed_word)-1), + (GC_word)((GC_signed_word)-1), + (GC_word)((GC_signed_word)-1), ((GC_word)((GC_signed_word)-1)) >> 8 /* highest byte is zero */ };