Skip to content

Commit

Permalink
Don't use unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Jul 17, 2016
1 parent 25ecafb commit 2428159
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions drmr.c
Expand Up @@ -377,7 +377,7 @@ static void run(LV2_Handle instance, uint32_t n_samples) {

pthread_mutex_lock(&drmr->load_mutex);
for (i = 0;i < drmr->num_samples;i++) {
uint32_t pos,lim;
int pos,lim;
drmr_sample* cs = drmr->samples+i;
if ((cs->active || cs->dataoffset) && (cs->limit > 0)) {
float coef_right, coef_left;
Expand All @@ -392,10 +392,10 @@ static void run(LV2_Handle instance, uint32_t n_samples) {
coef_right = coef_left = 1.0f;
}

uint32_t datastart, dataend;
int datastart, dataend;
if (cs->active) {
datastart = cs->dataoffset;
dataend = (uint32_t)-1;
dataend = n_samples;
} else {
datastart = 0;
dataend = cs->dataoffset;
Expand Down
2 changes: 1 addition & 1 deletion drmr.h
Expand Up @@ -61,7 +61,7 @@ typedef struct {
float velocity;
drmr_layer *layers;
float* data;
uint32_t dataoffset;
int dataoffset;
} drmr_sample;

// lv2 stuff
Expand Down

0 comments on commit 2428159

Please sign in to comment.