fix an endless loop on platforms where "char" is unsigned by default

This commit is contained in:
Sebastian Krzyszkowiak 2019-03-30 00:26:21 +01:00
parent 834b1028f5
commit 44bee57f55
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -139,7 +139,7 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
{NULL, 0, NULL, 0},
};
char opt;
int opt;
while ((opt = getopt_long(argc, argv, "d", long_options, NULL)) != -1) {
switch (opt) {
case 'd':