3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-16 04:05:42 +00:00
This commit is contained in:
nella 2026-07-13 17:37:32 +02:00 committed by GitHub
commit 3f44ddff33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 65 additions and 1 deletions

View file

@ -590,7 +590,7 @@ bool RTLIL::Const::convertible_to_int(bool is_signed) const
if (size == 32) {
if (is_signed)
return true;
return back() != State::S1;
return (*this)[size - 1] != State::S1;
}
return false;