summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2021-03-10 16:51:12 -0800
committerGitHub <noreply@github.com>2021-03-11 00:51:12 +0000
commita5ede7e253513ac0103c2521d7ac0c0452062b43 (patch)
treed97b4b46dd6f5d7ed62236b863862259c540206b /src/util
parente418b00f5e823eb8bcb10cb5c39f8a896921b33f (diff)
Use CVC4_ASSERTIONS instead of NDEBUG. (#6099)
Ensures that all checks are performed in production builds with enabled assertions.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/real_algebraic_number_poly_imp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/real_algebraic_number_poly_imp.cpp b/src/util/real_algebraic_number_poly_imp.cpp
index a7a55d63e..b4730c1b1 100644
--- a/src/util/real_algebraic_number_poly_imp.cpp
+++ b/src/util/real_algebraic_number_poly_imp.cpp
@@ -60,7 +60,7 @@ RealAlgebraicNumber::RealAlgebraicNumber(const std::vector<long>& coefficients,
long lower,
long upper)
{
-#ifndef NDEBUG
+#ifdef CVC4_ASSERTIONS
for (long c : coefficients)
{
Assert(std::numeric_limits<std::int32_t>::min() <= c
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback