diff --git a/lldb/test/expression_command/timeout/wait-a-while.c b/lldb/test/expression_command/timeout/wait-a-while.c index f3475fc3ff2d..a233f8dedf3a 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;