3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-03 13:07:58 +00:00

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

This commit is contained in:
Robert O'Callahan 2025-10-28 12:40:45 +00:00
parent 11a91af920
commit 4672127610

View file

@ -5882,7 +5882,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) {