Skip to content

Commit d542a60

Browse files
authored
Cast to integral type ignores qualifier volatile
Attempting to cast to a `volatile uint32_t` does nothing different from cast to a `uint32_t`, with the exception of **_looking like_** it's accessing a register.
1 parent 243c208 commit d542a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Reset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C" {
2929
#if (ARDUINO_SAMD_VARIANT_COMPLIANCE >= 10610)
3030

3131
extern const uint32_t __text_start__;
32-
#define APP_START ((volatile uint32_t)(&__text_start__) + 4)
32+
#define APP_START ((uint32_t)(&__text_start__) + 4)
3333

3434
#else
3535

0 commit comments

Comments
 (0)