Merge pull request #509 from despair86/master

fix warning
pull/516/head
Rick V 5 years ago committed by GitHub
commit 324305189c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -75,7 +75,9 @@ 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 !defined(__LP64__) || (__APPLE__ && __MACH__)
// NetBSDs also do this shit in long mode, wouldn't be surprised
// if all the BSDs do by default
#if !defined(__LP64__) || (__APPLE__ && __MACH__) || (__NetBSD__) || (__OpenBSD__)
if(!buff->writef("i%llu", i))
#else
if(!buff->writef("i%lu", i))

Loading…
Cancel
Save