We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a69d25 commit fd131dfCopy full SHA for fd131df
lldb/source/DataFormatters/FormattersHelpers.cpp
@@ -106,9 +106,7 @@ lldb_private::formatters::ExtractIndexFromString(const char *item_name) {
106
item_name++;
107
char *endptr = nullptr;
108
unsigned long int idx = ::strtoul(item_name, &endptr, 0);
109
- if (idx == 0 && endptr == item_name)
110
- return std::nullopt;
111
- if (idx == ULONG_MAX)
+ if ((idx == 0 && endptr == item_name) || idx == ULONG_MAX)
112
return std::nullopt;
113
return idx;
114
}
0 commit comments