Skip to content

Commit

Permalink
use common aws_min_u64 instead of MIN
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Jan 8, 2025
1 parent 5fac7a2 commit 603e7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ static void s_try_schedule_new_iteration(struct dispatch_loop_context *dispatch_
* unnecessarily, even if the app has shutdown. To avoid this, Ensure an iteration is scheduled within a
* 1-second interval to prevent it from remaining in the Apple dispatch queue indefinitely.
*/
delta = MIN(delta, AWS_TIMESTAMP_NANOS);
delta = aws_min_u64(delta, AWS_TIMESTAMP_NANOS);

if (delta == 0) {
// dispatch_after_f(0 , ...) is equivclient to dispatch_async_f(...) functionality wise, while
Expand Down

0 comments on commit 603e7bf

Please sign in to comment.