aboutsummaryrefslogtreecommitdiffstats
path: root/passes/memory/memory_dff.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-02-13 17:31:24 +0100
committerClifford Wolf <clifford@clifford.at>2016-02-13 17:31:24 +0100
commitbcc873b805f8ec74422752da530b71d8d762bded (patch)
treeeffe0c5495a8c2a55235bd2db1bd635923d97528 /passes/memory/memory_dff.cc
parent6f1d694171a5fd667f05402cc4e93fe2c66428e4 (diff)
downloadyosys-bcc873b805f8ec74422752da530b71d8d762bded.tar.gz
yosys-bcc873b805f8ec74422752da530b71d8d762bded.tar.bz2
yosys-bcc873b805f8ec74422752da530b71d8d762bded.zip
Fixed some visual studio warnings
Diffstat (limited to 'passes/memory/memory_dff.cc')
-rw-r--r--passes/memory/memory_dff.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/memory/memory_dff.cc b/passes/memory/memory_dff.cc
index 2eec0207b..beb2016a9 100644
--- a/passes/memory/memory_dff.cc
+++ b/passes/memory/memory_dff.cc
@@ -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"));