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: v8.0.0~779 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d5a7ed8d016563881f443357d17545c84811239;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 87574aad..d6a091b8 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1094,10 +1094,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 */ };