mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
bytesex.h: fix typo in le32toh function name
This fixes the build on 32-bit/64-bit ARM. Signed-off-by: Adam Sampson <ats@offog.org>
This commit is contained in:
committed by
H. Peter Anvin
parent
cd5dfb8c5f
commit
a65be7d59b
@@ -215,7 +215,7 @@ struct unaligned32 {
|
|||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
static inline uint32_t getu32(const void *p)
|
static inline uint32_t getu32(const void *p)
|
||||||
{
|
{
|
||||||
return l32toh(((const struct unaligned32 *)p)->v);
|
return le32toh(((const struct unaligned32 *)p)->v);
|
||||||
}
|
}
|
||||||
static inline uint32_t setu32(void *p, uint32_t v)
|
static inline uint32_t setu32(void *p, uint32_t v)
|
||||||
{
|
{
|
||||||
@@ -253,7 +253,7 @@ static inline uint16_t setu16(void *p, uint16_t v)
|
|||||||
static inline uint32_t getu32(const void *p)
|
static inline uint32_t getu32(const void *p)
|
||||||
{
|
{
|
||||||
const uint32_t _unaligned *pp = p;
|
const uint32_t _unaligned *pp = p;
|
||||||
return l32toh(*pp);
|
return le32toh(*pp);
|
||||||
}
|
}
|
||||||
static inline uint32_t setu32(void *p, uint32_t v)
|
static inline uint32_t setu32(void *p, uint32_t v)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user