summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2023-04-21 12:07:23 +0300
committerArnold D. Robbins <arnold@skeeve.com>2023-04-21 12:07:23 +0300
commit8197ce9f01fea6673e653d5be44562a52a53dc39 (patch)
tree1113ac00fa13547fef5830664780f85b79e478d2
parent08a0ad8dad8f6bf2842570fdc79a41fa813bfff3 (diff)
parent741a6a8c7f6322e782693183a5cf8224be1f18cd (diff)
downloadgawk-8197ce9f01fea6673e653d5be44562a52a53dc39.tar.gz
Merge branch 'gawk-5.2-stable'
-rw-r--r--ChangeLog3
-rw-r--r--main.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c9fdd2a2..7e0ad391 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 c161e8ee..b177663b 100644
--- a/main.c
+++ b/main.c
@@ -674,7 +674,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;