fix warning C4334
authorRahul Kumar <rahku@microsoft.com>
Sat, 27 Feb 2016 00:42:48 +0000 (16:42 -0800)
committerRahul Kumar <rahku@microsoft.com>
Sat, 27 Feb 2016 01:23:21 +0000 (17:23 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/fde7b2cd22a8c67ecf145e8602a132baa9a70156

src/coreclr/src/gc/gc.cpp

index 5cbdfd7..81e1572 100644 (file)
@@ -8193,7 +8193,7 @@ int index_of_set_bit (size_t power2)
     while (low <= high)
     {
         mid = ((low + high)/2);
-        size_t temp = 1 << mid;
+        size_t temp = (size_t)1 << mid;
         if (power2 & temp)
         {
             return mid;