Additional static casts needed for gcc-4.7 compilation

This commit is contained in:
Vedran Miletić
2012-03-08 21:50:10 -08:00
parent 0a8dc7033c
commit 0083b436d0

View File

@@ -125,7 +125,7 @@ CalendarScheduler::PeekNext (void) const
NS_ASSERT (!IsEmpty ());
uint32_t i = m_lastBucket;
uint64_t bucketTop = m_bucketTop;
Scheduler::Event minEvent = { 0, { ~0, ~0}};
Scheduler::Event minEvent = { static_cast<uint64_t>(0), { static_cast<uint32_t>(~0), static_cast<uint32_t>(~0)}};
do
{
if (!m_buckets[i].empty ())
@@ -154,7 +154,7 @@ CalendarScheduler::DoRemoveNext (void)
{
uint32_t i = m_lastBucket;
uint64_t bucketTop = m_bucketTop;
Scheduler::Event minEvent = { 0, { ~0, ~0}};
Scheduler::Event minEvent = { static_cast<uint64_t>(0), { static_cast<uint32_t>(~0), static_cast<uint32_t>(~0)}};
do
{
if (!m_buckets[i].empty ())