From 60ee3147a565f88d97418f5b344cf531acb060ca Mon Sep 17 00:00:00 2001 From: Erin Catto Date: Mon, 11 Dec 2023 02:09:22 -0800 Subject: [PATCH] minor compilation fixes (#114) --- src/TaskScheduler.cpp | 2 +- src/TaskScheduler_c.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TaskScheduler.cpp b/src/TaskScheduler.cpp index ee15373..07bb2cb 100644 --- a/src/TaskScheduler.cpp +++ b/src/TaskScheduler.cpp @@ -551,7 +551,7 @@ static inline uint32_t Hash32( uint32_t in_ ) acc = acc ^ (acc >> 13); acc = acc * PRIME32_3; acc = acc ^ (acc >> 16); - return (std::size_t)acc; + return acc; } bool TaskScheduler::TryRunTask( uint32_t threadNum_, uint32_t priority_, uint32_t& hintPipeToCheck_io_ ) diff --git a/src/TaskScheduler_c.h b/src/TaskScheduler_c.h index bee591f..ddb6ebc 100644 --- a/src/TaskScheduler_c.h +++ b/src/TaskScheduler_c.h @@ -130,7 +130,7 @@ struct enkiTaskSchedulerConfig /* ---------------------------- Task Scheduler ---------------------------- */ // Create a new task scheduler -ENKITS_API enkiTaskScheduler* enkiNewTaskScheduler(); +ENKITS_API enkiTaskScheduler* enkiNewTaskScheduler( void ); // Create a new task scheduler using a custom allocator // This will use the custom allocator to allocate the task scheduler struct @@ -211,7 +211,7 @@ ENKITS_API uint32_t enkiGetNumRegisteredExternalTaskThreads( enkiTask // for( uint32_t externalThreadNum = GetNumFirstExternalTaskThread(); // externalThreadNum < ( GetNumFirstExternalTaskThread() + numExternalTaskThreads // ++externalThreadNum ) { // do something with externalThreadNum } -ENKITS_API uint32_t enkiGetNumFirstExternalTaskThread(); +ENKITS_API uint32_t enkiGetNumFirstExternalTaskThread( void ); /* ---------------------------- TaskSets ---------------------------- */