summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vec.h b/vec.h
index cd2a039..8b5f489 100644
--- a/vec.h
+++ b/vec.h
@@ -8,6 +8,10 @@ static inline bool eq(int a, int b) {
return a == b;
}
+static inline bool eq(long long a, long long b) {
+ return a == b;
+}
+
static inline bool eq(double a, double b) {
// FIXME broken on large values
// https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/