mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
Fixed some visual studio warnings
This commit is contained in:
parent
6f1d694171
commit
bcc873b805
8 changed files with 10 additions and 10 deletions
|
@ -164,7 +164,7 @@ struct MemoryDffWorker
|
|||
|
||||
if (mux_cells_a.count(sig_data) || mux_cells_b.count(sig_data))
|
||||
{
|
||||
bool enable_invert = mux_cells_a.count(sig_data);
|
||||
bool enable_invert = mux_cells_a.count(sig_data) != 0;
|
||||
Cell *mux = enable_invert ? mux_cells_a.at(sig_data) : mux_cells_b.at(sig_data);
|
||||
SigSpec check_q = sigmap(mux->getPort(enable_invert ? "\\B" : "\\A"));
|
||||
|
||||
|
|
|
@ -313,7 +313,7 @@ struct TechmapWorker
|
|||
|
||||
if (c->type == "$memrd" || c->type == "$memwr" || c->type == "$meminit") {
|
||||
IdString memid = c->getParam("\\MEMID").decode_string();
|
||||
log_assert(memory_renames.count(memid));
|
||||
log_assert(memory_renames.count(memid) != 0);
|
||||
c->setParam("\\MEMID", Const(memory_renames[memid].str()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue