aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Readme.md4
-rw-r--r--src/main.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/Readme.md b/Readme.md
index 5948bd1..c003495 100644
--- a/Readme.md
+++ b/Readme.md
@@ -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
diff --git a/src/main.c b/src/main.c
index 21a1f49..e10b7a7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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]