reboot_bootloader: Use reinterpret_cast<> instead of C-style casting

Makes the linter happy, and produces exactly the same code.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent 82a7ceb75a
commit c3eb1af9da

@ -190,7 +190,7 @@ void Model01::reboot_bootloader() {
// Caterina.c // Caterina.c
uint16_t bootKey = 0x7777; uint16_t bootKey = 0x7777;
uint16_t *const bootKeyPtr = (uint16_t *)0x0800; uint16_t *const bootKeyPtr = reinterpret_cast<uint16_t *>(0x0800);
// Stash the magic key // Stash the magic key
*bootKeyPtr = bootKey; *bootKeyPtr = bootKey;

Loading…
Cancel
Save