From 7557e5d1713337f4acc3f531e5b88a1195476eec Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 6 Jul 2016 09:15:38 +0200 Subject: Fix signed unsigned comparison warning. --- drumgizmo/input/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drumgizmo') diff --git a/drumgizmo/input/test.cc b/drumgizmo/input/test.cc index 6767769..5025d2c 100644 --- a/drumgizmo/input/test.cc +++ b/drumgizmo/input/test.cc @@ -88,7 +88,7 @@ void TestInputEngine::run(size_t pos, size_t len, std::vector& events) auto& event = events.back(); event.type = TYPE_ONSET; - if((length != -1) && (pos > std::llround(length * sample_rate))) + if((length != -1) && (pos > (size_t)(length * sample_rate))) { event.type = TYPE_STOP; } -- cgit v1.2.3