File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/sdk/libc/xtensa-lx106-elf/include/sys Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,11 @@ static inline uint16_t pgm_read_word_inlined(const void* addr) {
73
73
#ifdef __cplusplus
74
74
#define pgm_read_dword (addr ) (*reinterpret_cast<const uint32_t*>(addr))
75
75
#define pgm_read_float (addr ) (*reinterpret_cast<const float*>(addr))
76
- #define pgm_read_ptr (addr ) (*reinterpret_cast<const void*>(addr))
76
+ #define pgm_read_ptr (addr ) (*reinterpret_cast<const void* const * >(addr))
77
77
#else
78
78
#define pgm_read_dword (addr ) (*(const uint32_t*)(addr))
79
79
#define pgm_read_float (addr ) (*(const float*)(addr))
80
- #define pgm_read_ptr (addr ) (*(const void*)(addr))
80
+ #define pgm_read_ptr (addr ) (*(const void* const* )(addr))
81
81
#endif
82
82
83
83
#define pgm_read_byte_near (addr ) pgm_read_byte(addr)
You can’t perform that action at this time.
0 commit comments