mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1124029
- Fix 64bit shift warning in nsVoidArray. r=froydnj
--HG-- extra : source : dba319233ef2df517d3ba37b4406357fb007dec7 extra : histedit_source : 4ad36db364b75ceb3566ef2f48507ad314d2e238
This commit is contained in:
parent
fa44e7387c
commit
c6aaaa4c77
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user