summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/expression_command/timeout/wait-a-while.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/expression_command/timeout/wait-a-while.c b/lldb/test/expression_command/timeout/wait-a-while.c
index f3475fc3ff2..a233f8dedf3 100644
--- a/lldb/test/expression_command/timeout/wait-a-while.c
+++ b/lldb/test/expression_command/timeout/wait-a-while.c
@@ -21,7 +21,7 @@ wait_a_while (useconds_t interval)
{
struct timeval now;
gettimeofday(&now, NULL);
- interval = target - now.tv_sec * 1000000 + now.tv_usec;
+ interval = target - (now.tv_sec * 1000000 + now.tv_usec);
}
else
break;
OpenPOWER on IntegriCloud