Fix left shift of signed integer - issue 1526
authorDmitry-Me <wipedout@yandex.ru>
Wed, 30 Sep 2015 09:16:30 +0000 (12:16 +0300)
committerDmitry-Me <wipedout@yandex.ru>
Wed, 30 Sep 2015 09:16:30 +0000 (12:16 +0300)
src/gc/gcrecord.h

index 2dbf8e8..9128ef8 100644 (file)
@@ -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.