mirror of https://github.com/YosysHQ/yosys.git
Make SigSpec::parse_rhs use is_chunk to avoid direct access to chunks_
This commit is contained in:
parent
62cd3ddfb8
commit
974b4dbe25
|
|
@ -5890,7 +5890,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…
Reference in New Issue