diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-04 11:03:40 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-04 11:03:40 +0000 |
commit | 1f378efbf0cd9a27588d4361e959167ec42583bf (patch) | |
tree | b02c8721a0b03b09093dd6359f85905c027a59f7 | |
parent | 53b7ce5b22f0653080d08b666e7e6ee35dd4284a (diff) | |
download | openocd+libswd-1f378efbf0cd9a27588d4361e959167ec42583bf.tar.gz openocd+libswd-1f378efbf0cd9a27588d4361e959167ec42583bf.tar.bz2 openocd+libswd-1f378efbf0cd9a27588d4361e959167ec42583bf.tar.xz openocd+libswd-1f378efbf0cd9a27588d4361e959167ec42583bf.zip |
Mariano Alvira <mar@devl.org> fixes warning as error about a signed vs. unsigned comparison by casting the local unsigned variable as (long long).
git-svn-id: svn://svn.berlios.de/openocd/trunk@1600 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-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); |