From 56e5492e91c3a42a25f63c9d8daf36627d2babd7 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 20 Apr 2017 11:26:11 +0300 Subject: [PATCH] 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. --- tests/test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */ }; -- 2.40.0