use int instead of char to hold return value of getopt_long to avoid issues if the default char is unsigned (arm64), update util and cppgtfs to fix further issues on such architectures

This commit is contained in:
Patrick Brosi 2024-01-02 16:26:07 +01:00
parent 6bbb461b02
commit 80504b21fe
3 changed files with 3 additions and 3 deletions

View file

@ -147,7 +147,7 @@ void ConfigReader::read(Config* cfg, int argc, char** argv) {
{"keep-additional-gtfs-fields", no_argument, 0, 'F'},
{0, 0, 0, 0}};
char c;
int c;
while ((c = getopt_long(argc, argv, ":o:hvi:c:x:Dm:g:X:T:d:pP:F", ops, 0)) !=
-1) {
switch (c) {