mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 11:40:05 +00:00
Fix bug determining next arg
This commit is contained in:
parent
89901a8a48
commit
8a0ec22f13
@ -448,7 +448,7 @@ OptStatus ParseOconfigFlag(const char* prog_name, const char* opt_flag,
|
||||
// the string "|argv[argi]|" is returned.
|
||||
std::string CanonicalizeFlag(const char** argv, int argc, int* argi) {
|
||||
const char* cur_arg = argv[*argi];
|
||||
const char* next_arg = (*(argi + 1) < argc) ? argv[*argi + 1] : nullptr;
|
||||
const char* next_arg = (*argi + 1 < argc) ? argv[*argi + 1] : nullptr;
|
||||
std::ostringstream canonical_arg;
|
||||
canonical_arg << cur_arg;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user