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 cd5dfb8 commit a65be7dCopy full SHA for a65be7d
include/bytesex.h
@@ -215,7 +215,7 @@ struct unaligned32 {
215
} __attribute__((packed));
216
static inline uint32_t getu32(const void *p)
217
{
218
- return l32toh(((const struct unaligned32 *)p)->v);
+ return le32toh(((const struct unaligned32 *)p)->v);
219
}
220
static inline uint32_t setu32(void *p, uint32_t v)
221
@@ -253,7 +253,7 @@ static inline uint16_t setu16(void *p, uint16_t v)
253
254
255
const uint32_t _unaligned *pp = p;
256
- return l32toh(*pp);
+ return le32toh(*pp);
257
258
259
0 commit comments