summaryrefslogtreecommitdiff
path: root/src/khash.h
diff options
context:
space:
mode:
authorCalvin Buckley <calvin@cmpct.info>2021-07-06 23:25:13 -0300
committerCalvin Buckley <calvin@cmpct.info>2021-07-06 23:28:47 -0300
commitc1aca3fedaf2cfe6d9bc7f5dbf5828a872dd74e5 (patch)
treee65ff448b3a2391b3e63b7cb6a13cd2a70fcf4a5 /src/khash.h
parent6c78fd06e3cedec818122ecc7f90e6c81e497354 (diff)
downloadlibgit2-c1aca3fedaf2cfe6d9bc7f5dbf5828a872dd74e5.tar.gz
Initial pass at using int64_t instead of long long
Even on systems without C99 where long long and stdint are both missing, we can shim stdint and point it to any compiler-specific type (i.e long long, _int64, etc.). Also next is constant suffixes and determining what needs to include stdint.
Diffstat (limited to 'src/khash.h')
-rw-r--r--src/khash.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/khash.h b/src/khash.h
index 40e2d1848..5066b5883 100644
--- a/src/khash.h
+++ b/src/khash.h
@@ -137,11 +137,7 @@ typedef unsigned int khint32_t;
typedef unsigned long khint32_t;
#endif
-#if ULONG_MAX == ULLONG_MAX
-typedef unsigned long khint64_t;
-#else
-typedef unsigned long long khint64_t;
-#endif
+typedef int64_t khint64_t;
#ifndef kh_inline
#ifdef _MSC_VER