From 96c9d640bed5485e70c5d38883d69d111b9ec386 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 17 Jul 2011 12:48:12 +0000 Subject: Fixed compiler warning. --- drumgizmo/input/test/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drumgizmo/input') diff --git a/drumgizmo/input/test/test.cc b/drumgizmo/input/test/test.cc index 3799f07..b7b4a7d 100644 --- a/drumgizmo/input/test/test.cc +++ b/drumgizmo/input/test/test.cc @@ -86,7 +86,7 @@ event_t *Test::run(size_t pos, size_t nsamples, size_t *nevents) *nevents = 1; event_t *evs = (event_t *)malloc(sizeof(event_t)); evs[0].type = TYPE_ONSET; - if(len != -1 && pos > len * 44100) evs[0].type = TYPE_STOP; + if(len != -1 && (int)pos > len * 44100) evs[0].type = TYPE_STOP; if(instr != -1) evs[0].instrument = instr; else evs[0].instrument = rand() % 32; -- cgit v1.2.3