Make SigSpec::parse_rhs use is_chunk to avoid direct access to chunks_

This commit is contained in:
Robert O'Callahan
2025-11-07 15:54:55 +00:00
parent 62cd3ddfb8
commit 974b4dbe25
+1 -1
View File
@@ -5890,7 +5890,7 @@ bool RTLIL::SigSpec::parse_rhs(const RTLIL::SigSpec &lhs, RTLIL::SigSpec &sig, R
return true;
}
if (lhs.chunks_.size() == 1) {
if (lhs.is_chunk()) {
char *p = (char*)str.c_str(), *endptr;
long int val = strtol(p, &endptr, 10);
if (endptr && endptr != p && *endptr == 0) {