mirror of
https://github.com/fmang/opustags.git
synced 2024-11-06 05:27:23 +01:00
Fix signedness warnings in t/cli.cc
This commit is contained in:
parent
84e238a4a9
commit
b369aea8d4
4
t/cli.cc
4
t/cli.cc
@ -43,10 +43,10 @@ static ot::status parse_options(const std::vector<const char*>& args, ot::option
|
||||
{
|
||||
int argc = args.size();
|
||||
char* argv[argc];
|
||||
for (size_t i = 0; i < argc; ++i)
|
||||
for (int i = 0; i < argc; ++i)
|
||||
argv[i] = strdup(args[i]);
|
||||
ot::status rc = ot::parse_options(argc, argv, opt, comments);
|
||||
for (size_t i = 0; i < argc; ++i)
|
||||
for (int i = 0; i < argc; ++i)
|
||||
free(argv[i]);
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user