From: Clifford Wolf Date: Sat, 7 Dec 2013 15:56:34 +0000 (+0100) Subject: Fixed uninitialized const flags bug X-Git-Tag: yosys-0.2.0~247 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ccf083e5b0a41373dc433b7490d8bf9a1ff726d0;p=yosys.git Fixed uninitialized const flags bug --- diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 5583be968..fbdab53eb 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 bits) : bits(bits) { }; + Const(std::vector 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;