summaryrefslogtreecommitdiff
path: root/src/util/floatingpoint.cpp
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2020-06-04 15:19:18 -0700
committerGitHub <noreply@github.com>2020-06-04 15:19:18 -0700
commitc5e74835268abbade41524a0584d3b58e3b000f7 (patch)
treef9c4d9b0bfda35d0fea98690849db61c902248be /src/util/floatingpoint.cpp
parente7e9b3587f82bb57c25bc52fdb229687cded5e22 (diff)
parent6c608754e8058098e410e208d0b6cc0f586b79ca (diff)
Merge branch 'master' into fixJavaTestsfixJavaTests
Diffstat (limited to 'src/util/floatingpoint.cpp')
-rw-r--r--src/util/floatingpoint.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/floatingpoint.cpp b/src/util/floatingpoint.cpp
index 3bcf2b0de..f5545f73c 100644
--- a/src/util/floatingpoint.cpp
+++ b/src/util/floatingpoint.cpp
@@ -925,7 +925,8 @@ static FloatingPointLiteral constructorHelperBitVector(
// We only have multiplyByPow(uint32_t) so we can't convert all numbers.
// As we convert Integer -> unsigned int -> uint32_t we need that
// unsigned int is not smaller than uint32_t
- static_assert(sizeof(unsigned int) >= sizeof(uint32_t));
+ static_assert(sizeof(unsigned int) >= sizeof(uint32_t),
+ "Conversion float -> real could loose data");
#ifdef CVC4_ASSERTIONS
// Note that multipling by 2^n requires n bits of space (worst case)
// so, in effect, these tests limit us to cases where the resultant
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback