3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-13 17:36:15 +00:00

remove class from enum class, add default to avoid compiler warning

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-10-12 22:44:23 -07:00
parent efb12331e0
commit 5356c4f7dd

View file

@ -139,7 +139,7 @@ namespace z3 {
*/ */
class context { class context {
public: public:
enum class rounding_mode { enum rounding_mode {
RNA, RNA,
RNE, RNE,
RTP, RTP,
@ -2693,11 +2693,12 @@ namespace z3 {
inline sort context::fpa_rounding_mode() { inline sort context::fpa_rounding_mode() {
switch (m_rounding_mode) { switch (m_rounding_mode) {
case rounding_mode::RNA: return sort(*this, Z3_mk_fpa_rna(m_ctx)); case rounding_mode::RNA: return sort(*this, Z3_mk_fpa_rna(m_ctx));
case rounding_mode::RNE: return sort(*this, Z3_mk_fpa_rne(m_ctx)); case rounding_mode::RNE: return sort(*this, Z3_mk_fpa_rne(m_ctx));
case rounding_mode::RTP: return sort(*this, Z3_mk_fpa_rtp(m_ctx)); case rounding_mode::RTP: return sort(*this, Z3_mk_fpa_rtp(m_ctx));
case rounding_mode::RTN: return sort(*this, Z3_mk_fpa_rtn(m_ctx)); case rounding_mode::RTN: return sort(*this, Z3_mk_fpa_rtn(m_ctx));
case rounding_mode::RTZ: return sort(*this, Z3_mk_fpa_rtz(m_ctx)); case rounding_mode::RTZ: return sort(*this, Z3_mk_fpa_rtz(m_ctx));
default: return sort(*this);
} }
} }