Bug 1124029 - Fix 64bit shift warning in nsVoidArray. r=froydnj

--HG--
extra : source : dba319233ef2df517d3ba37b4406357fb007dec7
extra : histedit_source : 4ad36db364b75ceb3566ef2f48507ad314d2e238
This commit is contained in:
Xidorn Quan 2015-01-28 08:55:44 +11:00
parent fa44e7387c
commit c6aaaa4c77

View File

@ -235,7 +235,7 @@ nsVoidArray::GrowArrayBy(int32_t aGrowBy)
newSize = SIZEOF_IMPL(newCapacity);
} else {
newSize = mozilla::CeilingLog2(newSize);
newCapacity = CAPACITYOF_IMPL(1u << newSize);
newCapacity = CAPACITYOF_IMPL(size_t(1) << newSize);
}
}
// frees old mImpl IF this succeeds