summaryrefslogtreecommitdiff
path: root/drumgizmo
diff options
context:
space:
mode:
authordeva <deva>2011-07-17 12:48:12 +0000
committerdeva <deva>2011-07-17 12:48:12 +0000
commit96c9d640bed5485e70c5d38883d69d111b9ec386 (patch)
treedf5c85796409a6e1c60b6330c1c9696fc5de2bea /drumgizmo
parent9cda7bfb4b01101d2a532270da41a3ea552a433f (diff)
Fixed compiler warning.
Diffstat (limited to 'drumgizmo')
-rw-r--r--drumgizmo/input/test/test.cc2
1 files changed, 1 insertions, 1 deletions
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;