aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-27 11:06:07 +0000
committergingerBill <gingerBill@users.noreply.github.com>2025-10-27 11:06:07 +0000
commit13f20906089ecd4b3e5f9c0d1b9605532c4c8c15 (patch)
treecb7f7c5b6d9f2bad14dc858d6795b12ccd6c664b /src/common.cpp
parent43529dda3806616e4ba0da3aa3079a9d56445df6 (diff)
Try to make `PtrMap` work for 32-bit compilers
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 5b007bf2c..d5fc1df4b 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -59,6 +59,11 @@ template <typename T> struct TypeIsPtrSizedInteger { enum {value = false}; };
template <> struct TypeIsPtrSizedInteger<isize> { enum {value = true}; };
template <> struct TypeIsPtrSizedInteger<usize> { enum {value = true}; };
+template <typename T> struct TypeIs64BitInteger { enum {value = false}; };
+template <> struct TypeIs64BitInteger<u64> { enum {value = true}; };
+template <> struct TypeIs64BitInteger<i64> { enum {value = true}; };
+
+
#include "unicode.cpp"
#include "array.cpp"