mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-05 13:56:04 +00:00
Make SigSpec::parse_rhs use is_chunk to avoid direct access to chunks_
This commit is contained in:
parent
11a91af920
commit
4672127610
1 changed files with 1 additions and 1 deletions
|
|
@ -5882,7 +5882,7 @@ bool RTLIL::SigSpec::parse_rhs(const RTLIL::SigSpec &lhs, RTLIL::SigSpec &sig, R
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lhs.chunks_.size() == 1) {
|
if (lhs.is_chunk()) {
|
||||||
char *p = (char*)str.c_str(), *endptr;
|
char *p = (char*)str.c_str(), *endptr;
|
||||||
long int val = strtol(p, &endptr, 10);
|
long int val = strtol(p, &endptr, 10);
|
||||||
if (endptr && endptr != p && *endptr == 0) {
|
if (endptr && endptr != p && *endptr == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue