From b8002ab0a7767bd8e983d91009674520677e810f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 23 Jan 2021 09:54:54 +0100 Subject: Fix option parsing on platforms where char is unsigned (e.g. arm) --- src/odr-sourcecompanion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/odr-sourcecompanion.cpp b/src/odr-sourcecompanion.cpp index 7e57698..d41873b 100644 --- a/src/odr-sourcecompanion.cpp +++ b/src/odr-sourcecompanion.cpp @@ -206,7 +206,7 @@ int main(int argc, char *argv[]) int bitrate = 0; int channels = 2; int sample_rate = 48000; - char ch = 0; + int ch = 0; int index; while(ch != -1) { ch = getopt_long(argc, argv, "hlb:c:e:T:k:o:r:p:P:I:", longopts, &index); -- cgit v1.2.3