mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Use u64 here to avoid warnings, better precision.
The timeout value is u32 anyway, so an int was already a loss.
This commit is contained in:
1 parent
c2c2b77792
commit
d3f2d9d10b
4 files changed
+17
-17
No files matched your search
+4
-4
@@ -250,16 +250,16 @@ void ScheduleEvent(int cyclesIntoFuture, int event_type, u64 userdata)
|
||||
}
|
||||
|
||||
// Returns cycles left in timer.
|
||||
int UnscheduleEvent(int event_type, u64 userdata)
|
||||
u64 UnscheduleEvent(int event_type, u64 userdata)
|
||||
{
|
||||
int result = 0;
|
||||
u64 result = 0;
|
||||
if (!first)
|
||||
return result;
|
||||
while(first)
|
||||
{
|
||||
if (first->type == event_type && first->userdata == userdata)
|
||||
{
|
||||
result = (int)(first->time - globalTimer);
|
||||
result = first->time - globalTimer;
|
||||
|
||||
Event *next = first->next;
|
||||
FreeEvent(first);
|
||||
@@ -278,7 +278,7 @@ int UnscheduleEvent(int event_type, u64 userdata)
|
||||
{
|
||||
if (ptr->type == event_type && ptr->userdata == userdata)
|
||||
{
|
||||
result = (int)(ptr->time - globalTimer);
|
||||
result = ptr->time - globalTimer;
|
||||
|
||||
prev->next = ptr->next;
|
||||
FreeEvent(ptr);
|
||||
|
||||
Reference in new issue
Block a user