summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--main.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ebd16b0d..1dac0a9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* array.c (asort_actual): Initialize `value' to avoid
compiler complaints. Thanks to Michal Jaegermann
for the report.
+ * main.c (usage): Cast array subscript to int to silence
+ a compiler warning. Thanks to "Jannick" <thirdedition@gmx.net>
+ for the report.
2023-04-14 Arnold D. Robbins <arnold@skeeve.com>
diff --git a/main.c b/main.c
index ba6eda3d..c48feafa 100644
--- a/main.c
+++ b/main.c
@@ -689,7 +689,7 @@ or by using a web forum such as Stack Overflow.\n\n"), fp);
// 5.2.60 is beta release on master, will become 5.3.0.
// 5.2.2a is beta release on stable, will become 5.2.3.
- if (patchlevel >= 60 || isalpha(PACKAGE_VERSION[strlen(PACKAGE_VERSION)-1]))
+ if (patchlevel >= 60 || isalpha((int) PACKAGE_VERSION[strlen(PACKAGE_VERSION)-1]))
url = beta_url;
else
url = gnu_url;