mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -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:
parent
cd5dfb8c5f
commit
a65be7d59b
1 changed files with 2 additions and 2 deletions
|
|
@ -215,7 +215,7 @@ struct unaligned32 {
|
|||
} __attribute__((packed));
|
||||
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)
|
||||
{
|
||||
|
|
@ -253,7 +253,7 @@ static inline uint16_t setu16(void *p, uint16_t v)
|
|||
static inline uint32_t getu32(const void *p)
|
||||
{
|
||||
const uint32_t _unaligned *pp = p;
|
||||
return l32toh(*pp);
|
||||
return le32toh(*pp);
|
||||
}
|
||||
static inline uint32_t setu32(void *p, uint32_t v)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue