8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c26102b commit ab9d4adCopy full SHA for ab9d4ad
tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h
@@ -72,11 +72,11 @@ static inline uint16_t pgm_read_word_inlined(const void* addr) {
72
#define pgm_read_word(addr) pgm_read_word_inlined(addr)
73
#ifdef __cplusplus
74
#define pgm_read_dword(addr) (*reinterpret_cast<const uint32_t*>(addr))
75
- #define pgm_read_float(addr) (*reinterpret_cast<const float>(addr))
+ #define pgm_read_float(addr) (*reinterpret_cast<const float*>(addr))
76
#define pgm_read_ptr(addr) (*reinterpret_cast<const void*>(addr))
77
#else
78
#define pgm_read_dword(addr) (*(const uint32_t*)(addr))
79
- #define pgm_read_float(addr) (*(const float)(addr))
+ #define pgm_read_float(addr) (*(const float*)(addr))
80
#define pgm_read_ptr(addr) (*(const void*)(addr))
81
#endif
82
0 commit comments