Changeset 5210:8eb738dee9d4 in roaraudio for roard/midi.c


Ignore:
Timestamp:
11/01/11 12:23:05 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Updated ports to minimal, win32 and avr (pr2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/midi.c

    r5208 r5210  
    282282    switch (mes->kk) { 
    283283     case MIDI_CCE_MAIN_VOL: 
    284        if ( (516 * mes->vv) > 65100 ) { // max volume 
     284       if ( (516U * (unsigned int)mes->vv) > 65100 ) { // max volume 
    285285        ss->mixer.mixer[mes->channel] = 65535; 
    286286       } else { 
     
    611611      switch (mes->kk) { 
    612612       case MIDI_CCE_MAIN_VOL: 
    613          if ( 516 * mes->vv > 65100 ) { // max volume 
     613         if ( 516U * (unsigned int)mes->vv > 65100 ) { // max volume 
    614614          ss->mixer.mixer[mes->channel] = 65535; 
    615615         } else { 
Note: See TracChangeset for help on using the changeset viewer.