mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-07 09:58:12 +08:00
r884: for C++ compatibility (#261)
This commit is contained in:
@@ -92,7 +92,7 @@ static int ketopt(ketopt_t *s, int argc, char *argv[], int permute, const char *
|
|||||||
char *p;
|
char *p;
|
||||||
if (s->pos == 0) s->pos = 1;
|
if (s->pos == 0) s->pos = 1;
|
||||||
opt = s->opt = argv[s->i][s->pos++];
|
opt = s->opt = argv[s->i][s->pos++];
|
||||||
p = strchr(ostr, opt);
|
p = strchr((char*)ostr, opt);
|
||||||
if (p == 0) {
|
if (p == 0) {
|
||||||
opt = '?'; /* unknown option */
|
opt = '?'; /* unknown option */
|
||||||
} else if (p[1] == ':') {
|
} else if (p[1] == ':') {
|
||||||
|
|||||||
Reference in New Issue
Block a user