Skip to content

Commit

Permalink
fix some compiler warnings (Wnarrowing, Wsign-compare)
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Aug 21, 2016
1 parent 598ad8c commit d5b661e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions balance.c
Expand Up @@ -211,7 +211,7 @@ static void
channel_map(BalanceControl *self, int mode,
const uint32_t start, const uint32_t end)
{
int i;
uint32_t i;
switch (mode) {
case 1:
for (i=start; i < end; ++i) {
Expand Down Expand Up @@ -360,7 +360,7 @@ static void update_meter_cfg(BalanceControl* self, int key, float val) {
static void
run(LV2_Handle instance, uint32_t n_samples)
{
int i,c;
uint32_t i,c;
BalanceControl* self = (BalanceControl*)instance;
const float balance = *self->balance;
const float trim = db_to_gain(*self->trim);
Expand Down
2 changes: 1 addition & 1 deletion ui.c
Expand Up @@ -1052,7 +1052,7 @@ onReshape(PuglView* view, int width, int height)

static void updateLight(PuglView* view) {
BLCui* ui = (BLCui*)puglGetHandle(view);
GLfloat light0_position[] = { .5 + ui->rot[0]/90.0, -.5 - ui->rot[1]/90.0, -10.0, 0 };
GLfloat light0_position[] = { (float)(.5 + ui->rot[0] / 90.0), (float)(-.5 - ui->rot[1] / 90.0), -10.f, 0.f };
GLfloat spot_direction[] = { -light0_position[0], -light0_position[1], -light0_position[2]};

glLightfv(GL_LIGHT0, GL_POSITION, light0_position);
Expand Down

0 comments on commit d5b661e

Please sign in to comment.