aboutsummaryrefslogtreecommitdiffstats
path: root/src/odr-sourcecompanion.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-01-23 09:54:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-01-23 09:54:54 +0100
commitb8002ab0a7767bd8e983d91009674520677e810f (patch)
tree94d5cf82cc990a4d4107551b1d65b041508c481f /src/odr-sourcecompanion.cpp
parent47e5aa5f441129876048c6faf3ac8857ddaef590 (diff)
downloadODR-SourceCompanion-b8002ab0a7767bd8e983d91009674520677e810f.tar.gz
ODR-SourceCompanion-b8002ab0a7767bd8e983d91009674520677e810f.tar.bz2
ODR-SourceCompanion-b8002ab0a7767bd8e983d91009674520677e810f.zip
Fix option parsing on platforms where char is unsigned (e.g. arm)
Diffstat (limited to 'src/odr-sourcecompanion.cpp')
-rw-r--r--src/odr-sourcecompanion.cpp2
1 files changed, 1 insertions, 1 deletions
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);