You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-mathematics/z3/files/z3-4.4.1-gcc-6.patch

19 lines
668 B

diff --git a/src/util/debug.cpp b/src/util/debug.cpp
index 54c67fe..66676c6 100644
--- a/src/util/debug.cpp
+++ b/src/util/debug.cpp
@@ -78,3 +78,3 @@ void invoke_gdb() {
char result;
- bool ok = (std::cin >> result);
+ bool ok = bool(std::cin >> result);
if (!ok) exit(ERR_INTERNAL_FATAL); // happens if std::cin is eof or unattached.
diff --git a/src/util/mpz.cpp b/src/util/mpz.cpp
index 8559279..7dca14b 100644
--- a/src/util/mpz.cpp
+++ b/src/util/mpz.cpp
@@ -136,3 +136,3 @@ mpz_manager<SYNCH>::mpz_manager():
mpz one(1);
- set(m_two64, UINT64_MAX);
+ set(m_two64, (uint64)UINT64_MAX);
add(m_two64, one, m_two64);