-Mar.

---
 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 d5be42d..e1751d4 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);
-- 
1.5.6.5

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to