From 741a6a8c7f6322e782693183a5cf8224be1f18cd Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 21 Apr 2023 12:06:24 +0300 Subject: Small fix in main.c. --- ChangeLog | 3 +++ main.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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" + for the report. 2023-04-14 Arnold D. Robbins 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; -- cgit v1.2.1