> > Possibly, it is needed to change eeprom_read_byte() definition > > to int return value. This can reduce summary size. Opinions? > > This does not make sense to me. Eeprom_read_byte() is supposed to read, and > return, a single byte. So why should it return a 16-bit int? In my mind > this would just make it more confusing to the end user.
Agree, it was a bad idea. More, the definition of eeprom_read_byte() as int will decrease performance in cases, where Avr-gcc can omit integral promotion, for example: if (eeprom_read_byte(&x) < 10) Regards, Dmitry. _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev