mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Fix the timer compare function (need an extra dereference).
This commit is contained in:
parent
aef20fd271
commit
5905287cc8
@ -274,7 +274,10 @@ Int32 TimerImplComparator::Compare(
|
||||
Uint32 inSizeOne,
|
||||
Uint32 inSizeTwo) const
|
||||
{
|
||||
return (( TimerImpl *) inItemOne)->GetFireTime() - (( TimerImpl *) inItemTwo)->GetFireTime();
|
||||
const TimerImpl *timerOne = reinterpret_cast<const TimerImpl *>(*(TimerImpl **)inItemOne);
|
||||
const TimerImpl *timerTwo = reinterpret_cast<const TimerImpl *>(*(TimerImpl **)inItemTwo);
|
||||
|
||||
return (timerOne->GetFireTime() - timerTwo->GetFireTime());
|
||||
}
|
||||
|
||||
NS_BASE nsresult NS_NewTimer(nsITimer** aInstancePtrResult)
|
||||
|
Loading…
x
Reference in New Issue
Block a user