summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gc/gc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp
index 5cbdfd7409..81e1572fb1 100644
--- a/src/gc/gc.cpp
+++ b/src/gc/gc.cpp
@@ -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;