So lu on linux gcc 7.3 but llu everywhere else?

This commit is contained in:
Ryan Tharp 2019-02-18 02:13:42 -08:00
parent 25d00e2974
commit f247a3623c

View File

@ -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;
}