From f247a3623cda50bd0b969b1f8ed48da0e65c8bb6 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Mon, 18 Feb 2019 02:13:42 -0800 Subject: [PATCH] So lu on linux gcc 7.3 but llu everywhere else? --- llarp/util/bencode.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llarp/util/bencode.cpp b/llarp/util/bencode.cpp index 1200834db..058054a67 100644 --- a/llarp/util/bencode.cpp +++ b/llarp/util/bencode.cpp @@ -75,7 +75,11 @@ bencode_write_bytestring(llarp_buffer_t* buff, const void* data, size_t sz) bool bencode_write_uint64(llarp_buffer_t* buff, uint64_t i) { +#if (__APPLE__ && __MACH__) + if(!buff->writef("i%llu", i)) +#else if(!buff->writef("i%lu", i)) +#endif { return false; }