summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint64_pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/uint64_pack.c')
-rw-r--r--src/libstddjb/uint64_pack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstddjb/uint64_pack.c b/src/libstddjb/uint64_pack.c
index 18033da..5e8025c 100644
--- a/src/libstddjb/uint64_pack.c
+++ b/src/libstddjb/uint64_pack.c
@@ -1,10 +1,11 @@
/* ISC license. */
#include <string.h>
+
#include <skalibs/uint64.h>
void uint64_pack (char *s, uint64_t u)
{
- u = uint64_little(u) ;
+ uint64_littlep(&u) ;
memcpy(s, &u, sizeof(uint64_t)) ;
}