]> git.sur5r.net Git - openocd/commitdiff
Mariano Alvira <mar@devl.org> fixes warning as error about a signed vs. unsigned...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 4 May 2009 11:03:40 +0000 (11:03 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 4 May 2009 11:03:40 +0000 (11:03 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1600 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/command.c

index d5be42dfeea02dfc4c4081bf74c594ccc8da8473..e1751d4fedda0381128a99f6a372e401111f9bfa 100644 (file)
@@ -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);