diff options
author | katherine <ageha@airen-no-jikken.icu> | 2021-01-09 14:05:57 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2021-01-09 14:05:57 -0700 |
commit | 5113a9fd817e5df67b3b9cf9cf3a4fee715587b8 (patch) | |
tree | 443823d8a930fc8e55f68efacbe9b21fed24ac35 | |
parent | 1ccfd37f5513ed29a61325a81944386da4e2a737 (diff) | |
download | every-5113a9fd817e5df67b3b9cf9cf3a4fee715587b8.tar.gz |
check for <32 bit arch
-rw-r--r-- | Readme.md | 4 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -186,3 +186,7 @@ note this program requires a POSIX environment. it also makes use of the `timegm` function, which is a non-standard extension but commonly implemented. + +because of how `time.h` defines `struct tm`, and of how active events are +calculated, every will not work correctly on architectures where `int` is +smaller than 32 bits @@ -27,7 +27,7 @@ int main(int argc, char **argv) char **rdirs, **cur; bool calpath_alloced = false; - if (INT_MAX < 2147483647) { + if ((unsigned long)INT_MAX < (unsigned long)2147483647) { ERR( "%s does not work appropriately on systems where `int` < 32 bits", argv[0] |