From e88276fdec7b3b94ec939f5eb1c8def004ee3878 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 1 Jun 2022 12:36:34 +0000 Subject: Rework endianness conversion primitives Signed-off-by: Laurent Bercot --- src/libstddjb/uint32_pack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstddjb/uint32_pack.c') diff --git a/src/libstddjb/uint32_pack.c b/src/libstddjb/uint32_pack.c index a06ccf1..b38bfeb 100644 --- a/src/libstddjb/uint32_pack.c +++ b/src/libstddjb/uint32_pack.c @@ -2,10 +2,11 @@ #include #include + #include void uint32_pack (char *s, uint32_t u) { - u = uint32_little(u) ; + uint32_littlep(u) ; memcpy(s, &u, sizeof(uint32_t)) ; } -- cgit v1.2.3