favor 'long' over 'long long' for the definition of ARCH_INT64_TYPE

that way ARCH_INT64_PRINTF_FORMAT has a better chance of matching 'int64_t'
master
Olivier Andrieu 2017-05-05 16:15:24 +02:00 committed by David Allsopp
parent ad273c995a
commit b88f745dae
1 changed files with 5 additions and 5 deletions

View File

@ -55,14 +55,14 @@
#endif
#ifndef ARCH_INT64_TYPE
#if SIZEOF_LONGLONG == 8
#define ARCH_INT64_TYPE long long
#define ARCH_UINT64_TYPE unsigned long long
#define ARCH_INT64_PRINTF_FORMAT "ll"
#elif SIZEOF_LONG == 8
#if SIZEOF_LONG == 8
#define ARCH_INT64_TYPE long
#define ARCH_UINT64_TYPE unsigned long
#define ARCH_INT64_PRINTF_FORMAT "l"
#elif SIZEOF_LONGLONG == 8
#define ARCH_INT64_TYPE long long
#define ARCH_UINT64_TYPE unsigned long long
#define ARCH_INT64_PRINTF_FORMAT "ll"
#else
#error "No 64-bit integer type available"
#endif