git: 0016b7da3441 - main - iconv: Fix tablegen iconv test utility on arm64
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Sep 6 14:46:20 UTC 2021
The branch main has been updated by trasz:
URL: https://cgit.FreeBSD.org/src/commit/?id=0016b7da344191c1960088d2fc41b0cfc3d5b5ec
commit 0016b7da344191c1960088d2fc41b0cfc3d5b5ec
Author: Edward Tomasz Napierala <trasz at FreeBSD.org>
AuthorDate: 2021-09-06 14:44:59 +0000
Commit: Edward Tomasz Napierala <trasz at FreeBSD.org>
CommitDate: 2021-09-06 14:45:08 +0000
iconv: Fix tablegen iconv test utility on arm64
Previously it would loop indefinitely on getopt_long(3)
due to 'char' being unsigned.
Reviewed By: allanjude
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D31817
---
tools/test/iconv/tablegen/tablegen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/test/iconv/tablegen/tablegen.c b/tools/test/iconv/tablegen/tablegen.c
index a67de54ff310..12d44ae753ff 100644
--- a/tools/test/iconv/tablegen/tablegen.c
+++ b/tools/test/iconv/tablegen/tablegen.c
@@ -200,7 +200,7 @@ main (int argc, char *argv[])
struct iconv_fallbacks fbs;
iconv_t cd;
char *tocode;
- char c;
+ int c;
while (((c = getopt_long(argc, argv, optstr, long_options, NULL)) != -1)) {
switch (c) {
More information about the dev-commits-src-main
mailing list