Skip to content

Commit ab9d4ad

Browse files
Fix pgm_read_float() macro definitions (#5666)
Add in missing derefeence in pgm_read_float macro which was causing compile errors.
1 parent c26102b commit ab9d4ad

File tree

1 file changed

+2
-2
lines changed
  • tools/sdk/libc/xtensa-lx106-elf/include/sys

1 file changed

+2
-2
lines changed

tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ static inline uint16_t pgm_read_word_inlined(const void* addr) {
7272
#define pgm_read_word(addr) pgm_read_word_inlined(addr)
7373
#ifdef __cplusplus
7474
#define pgm_read_dword(addr) (*reinterpret_cast<const uint32_t*>(addr))
75-
#define pgm_read_float(addr) (*reinterpret_cast<const float>(addr))
75+
#define pgm_read_float(addr) (*reinterpret_cast<const float*>(addr))
7676
#define pgm_read_ptr(addr) (*reinterpret_cast<const void*>(addr))
7777
#else
7878
#define pgm_read_dword(addr) (*(const uint32_t*)(addr))
79-
#define pgm_read_float(addr) (*(const float)(addr))
79+
#define pgm_read_float(addr) (*(const float*)(addr))
8080
#define pgm_read_ptr(addr) (*(const void*)(addr))
8181
#endif
8282

0 commit comments

Comments
 (0)