diff options
Diffstat (limited to 'drumgizmo')
-rw-r--r-- | drumgizmo/input/test.cc | 2 |
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; } |