From f9afda01df036a72987fdc84b989ff096fb0f6d9 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 18 Feb 2022 18:36:55 +0000 Subject: [PATCH] Fix strict build Signed-off-by: falkTX --- source/backend/engine/CarlaEngineDummy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/backend/engine/CarlaEngineDummy.cpp b/source/backend/engine/CarlaEngineDummy.cpp index 400c5eb44..72b1f7551 100644 --- a/source/backend/engine/CarlaEngineDummy.cpp +++ b/source/backend/engine/CarlaEngineDummy.cpp @@ -242,7 +242,9 @@ protected: while (! shouldThreadExit()) { - carla_sleep(delay); + if (delay > 0) + carla_sleep(static_cast(delay)); + oldTime = getTimeInMicroseconds(); const PendingRtEventsRunner prt(this, bufferSize, true);