]> git.sur5r.net Git - openocd/blobdiff - src/helper/command.c
Fix usage of timeval_ms()
[openocd] / src / helper / command.c
index bd7113a78cd27d40dca98e3ea0e6c96b6d7a1c63..fc4aac72edf7c158c290118ab2ae4d41cf554828 100644 (file)
@@ -1173,8 +1173,8 @@ COMMAND_HANDLER(handle_sleep_command)
                return retval;
 
        if (!busy) {
-               long long then = timeval_ms();
-               while (timeval_ms() - then < (long long)duration) {
+               int64_t then = timeval_ms();
+               while (timeval_ms() - then < (int64_t)duration) {
                        target_call_timer_callbacks_now();
                        usleep(1000);
                }