# HG changeset patch # User Giulio Moro # Date 1455328261 0 # Node ID 869f5e703844c2d0e4247ed4210b354a12dd5863 # Parent b10f5ba8fd3386a707ff9522bdd70cef87e76b56 Fixed compiler warnings diff -r b10f5ba8fd33 -r 869f5e703844 core/I2c_Codec.cpp --- a/core/I2c_Codec.cpp Sat Feb 13 01:45:21 2016 +0000 +++ b/core/I2c_Codec.cpp Sat Feb 13 01:51:01 2016 +0000 @@ -414,7 +414,7 @@ // Write a specific register on the codec int I2c_Codec::writeRegister(unsigned int reg, unsigned int value) { - char buf[2] = { reg & 0xFF, value & 0xFF }; + char buf[2] = { static_cast(reg & 0xFF), static_cast(value & 0xFF) }; if(write(i2C_file, buf, 2) != 2) { diff -r b10f5ba8fd33 -r 869f5e703844 include/Midi.h --- a/include/Midi.h Sat Feb 13 01:45:21 2016 +0000 +++ b/include/Midi.h Sat Feb 13 01:51:01 2016 +0000 @@ -63,7 +63,7 @@ void prettyPrint(){ rt_printf("MessageType: %x, ", this->getType()); rt_printf("channel: %u, ", this->getChannel()); - for(int n = 0; n < this->getNumDataBytes(); n++){ + for(unsigned int n = 0; n < this->getNumDataBytes(); n++){ rt_printf("data%d: %d, ", n + 1, this->getDataByte(n)); } rt_printf("\n");