Browse code

Store result of getopt_long in an int

This fixes issues on ARM, where char is unsigned.

John Hawthorn authored on 23/06/2016 06:53:20
Showing 2 changed files

... ...
@@ -5,6 +5,10 @@ Performance:
5 5
   - Use threads to parallelize searching and scoring
6 6
   - Read all pending input from tty before searching
7 7
 
8
+Bugfixes:
9
+
10
+  - Fixed command line parsing on ARM
11
+
8 12
 ## 0.5 (2016-06-11)
9 13
 
10 14
 Bugfixes:
... ...
@@ -48,7 +48,7 @@ void options_set_defaults(options_t *options) {
48 48
 void options_parse(options_t *options, int argc, char *argv[]) {
49 49
 	options_set_defaults(options);
50 50
 
51
-	char c;
51
+	int c;
52 52
 	while ((c = getopt_long(argc, argv, "vhse:q:l:t:p:", longopts, NULL)) != -1) {
53 53
 		switch (c) {
54 54
 			case 'v':