mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 12:08:19 +00:00
Merge pull request #4954 from YosysHQ/krys/abstract_default_val
Fixes for abstract.cc
This commit is contained in:
commit
b9131853ff
|
@ -45,9 +45,9 @@ struct Slice {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int parse_index(const char *begin, const char *end, const std::string &slice) {
|
static int parse_index(const char *begin, const char *end, const std::string &slice) {
|
||||||
int value;
|
int value = 0;
|
||||||
auto result = std::from_chars(begin, end, value, 10);
|
auto result = std::from_chars(begin, end, value, 10);
|
||||||
if (result.ptr != end || result.ptr == begin)
|
if (result.ptr != end || result.ptr == begin)
|
||||||
syntax_error(slice);
|
syntax_error(slice);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue