mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
Make SigSpec::parse_rhs use is_chunk to avoid direct access to chunks_
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user