Switch to using the correct intptr_t type use where a pointer must be cast to an...
[pub/USBasp.git] / LUFA / Common / Common.h
index 308897e..86b84cc 100644 (file)
                         *  \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,
                        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)
                                {