diff options
author | katherine <ageha@airen-no-jikken.icu> | 2020-01-07 14:50:31 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2020-01-07 14:50:31 -0700 |
commit | 3cfd9c38e563dec8202e9af84a8e5c9e7f503db1 (patch) | |
tree | 123665b4cac8931447a19b3493523813cc2931a1 | |
parent | 6aa5872d216ac38bba66fa04eea586c316b5969e (diff) | |
download | every-3cfd9c38e563dec8202e9af84a8e5c9e7f503db1.tar.gz |
check for < 32bits
-rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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(); |