3
0
Fork 0
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:
Emil J 2025-03-26 10:40:37 +01:00 committed by GitHub
commit b9131853ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
} }