X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/071e02c6b6b4837fa9cf0b6d4c749994e02638d7..54e69dbee146182a60c258076b8d26e8f5ac752a:/LUFA/Common/Common.h diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 308897e6d..86b84cc2a 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -108,9 +108,9 @@ * \ingroup Group_Debugging */ #define SERIAL_STREAM_ASSERT(x) MACROS{ if (!(x)) { printf_P(PSTR("%s: Function \"%s\", Line %d: " \ - "Assertion \"%s\" failed.\r\n"), \ - __FILE__, __func__, __LINE__, #x); \ - } }MACROE + "Assertion \"%s\" failed.\r\n"), \ + __FILE__, __func__, __LINE__, #x); } \ + }MACROE /* Inline Functions: */ /** Function to reverse the individual bits in a byte - i.e. bit 7 is moved to bit 0, bit 6 to bit 1, @@ -167,7 +167,7 @@ static inline void SwapEndian_n(void* Data, uint8_t Bytes); static inline void SwapEndian_n(void* Data, uint8_t Bytes) { - uint8_t* CurrDataPos = Data; + uint8_t* CurrDataPos = (uint8_t*)Data; while (Bytes) {