}
if(com != 255 && com)
{
- char fx = 'A'+(char)com-1;
+ char fx = (char)('A'+com-1);
printf("%c%02X\n", fx, info);
switch(fx)
{
if(ins || gotVolume)
{
lastInst[channel] = &instruments[ins-1];
- PlayNote(mixer, ins ? &instruments[ins-1] : null, note, octave, lastInst[channel] ? (byte)(volume*lastInst[channel]->header.volume/63) : (byte)volume, channel+1);
+ PlayNote(mixer, ins ? &instruments[ins-1] : null, note, octave, lastInst[channel] ? (byte)(volume*lastInst[channel]->header.volume/63) : (byte)volume, (uint16)(channel+1));
}
offsets[channel] = 0;
}
if(*pictureUp == oldColor)
{
if(!upIn)
- stack.Add({ (uint16)x, (uint16)y - 1});
+ stack.Add({ (uint16)x, (uint16)(y - 1)});
upIn = true;
}
else
if(*pictureDown == oldColor)
{
if(!downIn)
- stack.Add({ (uint16)x, (uint16)y + 1});
+ stack.Add({ (uint16)x, (uint16)(y + 1)});
downIn = true;
}
else