summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-07-06 09:15:38 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-07-06 09:15:38 +0200
commit7557e5d1713337f4acc3f531e5b88a1195476eec (patch)
treefdf1585e6446c8047ac20659d1d89394934fb68d
parent9a0abf4a45c516b15d74ab41f8dab8348d6b00c9 (diff)
Fix signed unsigned comparison warning.
-rw-r--r--drumgizmo/input/test.cc2
1 files changed, 1 insertions, 1 deletions
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<event_t>& 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;
}