From 3cfd9c38e563dec8202e9af84a8e5c9e7f503db1 Mon Sep 17 00:00:00 2001
From: katherine <ageha@airen-no-jikken.icu>
Date: Tue, 7 Jan 2020 14:50:31 -0700
Subject: check for < 32bits

---
 src/main.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/main.c b/src/main.c
index 2d6c7c8..21a1f49 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,6 +6,7 @@
 #include "../reqs/simple-xdg-bdirs/simple-xdg-bdirs.h"
 
 #include <stdbool.h>
+#include <limits.h>
 
 #include <unistd.h>
 #include <sys/types.h>
@@ -26,6 +27,13 @@ int main(int argc, char **argv)
 	char **rdirs, **cur;
 	bool calpath_alloced = false;
 
+	if (INT_MAX < 2147483647) {
+		ERR(
+			"%s does not work appropriately on systems where `int` < 32 bits",
+			argv[0]
+		);
+	}
+
 	opt_parse(argc, argv);
 
 	cmd = opt_command();
-- 
cgit v1.2.3