From 68fdc3f012e3a5efc5c56316301fb84b67d86902 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Wed, 28 Sep 2011 17:21:59 -0400 Subject: [PATCH] Fixing a bug in Mac eeprom.h (that appears on ATtiny's). --- build/macosx/dist/eeprom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/macosx/dist/eeprom.h b/build/macosx/dist/eeprom.h index 61c38a727..3cf5575c5 100644 --- a/build/macosx/dist/eeprom.h +++ b/build/macosx/dist/eeprom.h @@ -196,7 +196,7 @@ __ATTR_PURE__ static __inline__ uint8_t eeprom_read_byte (const uint8_t *__p) { do {} while (!eeprom_is_ready ()); #if E2END <= 0xFF - EEARL = (uint8_t)__p; + EEARL = (uint8_t)(uint16_t)__p; #else EEAR = (uint16_t)__p; #endif