summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-12-07 16:56:34 +0100
committerClifford Wolf <clifford@clifford.at>2013-12-07 16:56:34 +0100
commitccf083e5b0a41373dc433b7490d8bf9a1ff726d0 (patch)
tree99f5bb0c6f96aa6a3bb1691c195d79038058d841 /kernel
parent5de57e9970a76ae99f5baee46c60fc7f34aca772 (diff)
Fixed uninitialized const flags bug
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 5583be96..fbdab53e 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -195,7 +195,7 @@ struct RTLIL::Const {
Const(std::string str);
Const(int val, int width = 32);
Const(RTLIL::State bit, int width = 1);
- Const(std::vector<RTLIL::State> bits) : bits(bits) { };
+ Const(std::vector<RTLIL::State> bits) : bits(bits) { flags = CONST_FLAG_NONE; };
bool operator <(const RTLIL::Const &other) const;
bool operator ==(const RTLIL::Const &other) const;
bool operator !=(const RTLIL::Const &other) const;