From c3eb1af9dad369cac092220c9366f16289c7b9ee Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 5 Jun 2017 14:20:27 +0200 Subject: [PATCH] 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 --- src/Kaleidoscope-Hardware-Model01.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kaleidoscope-Hardware-Model01.cpp b/src/Kaleidoscope-Hardware-Model01.cpp index 911e7d79..c51b9661 100644 --- a/src/Kaleidoscope-Hardware-Model01.cpp +++ b/src/Kaleidoscope-Hardware-Model01.cpp @@ -190,7 +190,7 @@ void Model01::reboot_bootloader() { // Caterina.c uint16_t bootKey = 0x7777; - uint16_t *const bootKeyPtr = (uint16_t *)0x0800; + uint16_t *const bootKeyPtr = reinterpret_cast(0x0800); // Stash the magic key *bootKeyPtr = bootKey;