diff options
-rw-r--r-- | src/helper/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index d5be42df..e1751d4f 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -783,7 +783,7 @@ int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **ar } else { long long then=timeval_ms(); - while ((timeval_ms()-then)<duration) + while ((timeval_ms()-then)<(long long)duration) { target_call_timer_callbacks_now(); usleep(1000); |