summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2023-04-21 12:06:24 +0300
committerArnold D. Robbins <arnold@skeeve.com>2023-04-21 12:06:24 +0300
commit741a6a8c7f6322e782693183a5cf8224be1f18cd (patch)
treed8edb2ce629d6b372c78e2313208e5ee4f0f2137
parent3d3d4f7651c9425b28df6490b03e6cd1d3946650 (diff)
downloadgawk-741a6a8c7f6322e782693183a5cf8224be1f18cd.tar.gz
Small fix in main.c.
-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;