]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fixes compile errors for massdrop keyboards
authorChris Dosé <chris.dose@gmail.com>
Sun, 2 Jun 2019 20:34:17 +0000 (13:34 -0700)
committerDrashna Jaelre <drashna@live.com>
Mon, 3 Jun 2019 19:11:03 +0000 (12:11 -0700)
tmk_core/protocol/arm_atsam/md_bootloader.h

index 956145c3132267c28606f67db4ebb42ed63f3dbe..6b80ef49221e17c15a6379341fc295c8e4f6cce8 100644 (file)
@@ -11,7 +11,7 @@ extern uint32_t _erom;
 //WARNING: These are only for CTRL bootloader release "v2.18Jun 22 2018 17:28:08" for bootloader_jump support
 extern uint32_t _eram;
 #define BOOTLOADER_MAGIC 0x3B9ACA00
-#define MAGIC_ADDR (uint32_t *)(&_eram - 4)
+#define MAGIC_ADDR (uint32_t *)((intptr_t)(&_eram) - 4)
 #endif
 
 #ifdef MD_BOOTLOADER
@@ -22,4 +22,3 @@ extern uint32_t _eram;
 #endif //MD_BOOTLOADER
 
 #endif //_MD_BOOTLOADER_H_
-