Skip to content

Misaligned multi-byte formats not supported in pgm_read_* #5628

Closed
@Hoek67

Description

@Hoek67

the lines

#define pgm_read_float(addr)            (*reinterpret_cast<const float*>(addr))			 //dw fixed
#define pgm_read_float(addr)            (*(const float*)(addr))				// dw fixed

was/is

#define pgm_read_float(addr)            (*reinterpret_cast<const float>(addr))	// error		 
#define pgm_read_float(addr)            (*(const float)(addr))				// error

Notice both were missing the pointer part on the cast.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions