From: Dmitry-Me Date: Wed, 30 Sep 2015 09:16:30 +0000 (+0300) Subject: Fix left shift of signed integer - issue 1526 X-Git-Tag: accepted/tizen/base/20180629.140029~6357^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bc51bf79f08ec47e12f5eb57a2c0fb9df09ab54;p=platform%2Fupstream%2Fcoreclr.git Fix left shift of signed integer - issue 1526 --- diff --git a/src/gc/gcrecord.h b/src/gc/gcrecord.h index 2dbf8e8..9128ef8 100644 --- a/src/gc/gcrecord.h +++ b/src/gc/gcrecord.h @@ -19,7 +19,7 @@ Module Name: // We pack the dynamic tuning for deciding which gen to condemn in a DWORD. // We assume that 2 bits are enough to represent the generation. #define bits_generation 2 -#define generation_mask (~(~0 << bits_generation)) +#define generation_mask (~(~0u << bits_generation)) //=======================note !!!===================================// // If you add stuff to this enum, remember to update total_gen_reasons // and record_condemn_gen_reasons below.