Skip to content

Commit

Permalink
function argument type changed, adapt ASSERTs
Browse files Browse the repository at this point in the history
  • Loading branch information
rottegift committed Oct 29, 2024
1 parent fac873c commit 27ec4da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/os/macos/spl/spl-osx.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ utsname(void)
void
osx_delay(clock_t ticks)
{
ASSERT3S(ticks, >, 0);
ASSERT3U(ticks, <, SEC_TO_TICK(60));

// ticks are 10 msec units
int64_t ticks_to_go = (int64_t)ticks;
Expand Down Expand Up @@ -109,7 +109,7 @@ osx_delay(clock_t ticks)

bool forced_sleep = false;

ASSERT3S(ticks_to_go, >, 0);
ASSERT3U(ticks_to_go, <, SEC_TO_TICK(60));
unsigned milliseconds_remaining = ticks_to_go * 10;

if (milliseconds_remaining < 2) {
Expand Down

0 comments on commit 27ec4da

Please sign in to comment.