summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/rtstutter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/rtstutter.c b/src/tests/rtstutter.c
index 39dfc5d3..4753ee90 100644
--- a/src/tests/rtstutter.c
+++ b/src/tests/rtstutter.c
@@ -75,7 +75,7 @@ static void* work(void *p) {
end.tv_sec += nsec / PA_NSEC_PER_SEC;
end.tv_nsec += nsec % PA_NSEC_PER_SEC;
- while (end.tv_nsec > PA_NSEC_PER_SEC) {
+ while ((pa_usec_t) end.tv_nsec > PA_NSEC_PER_SEC) {
end.tv_sec++;
end.tv_nsec -= PA_NSEC_PER_SEC;
}