3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

fix errors

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-02-07 14:29:28 -08:00
parent 10894069b0
commit 734d48fa33
3 changed files with 4 additions and 2 deletions

View file

@ -141,7 +141,7 @@ extern "C" {
}
catch (z3_exception& ex) {
r = l_undef;
if (ex.msg() == "canceled" && mk_c(c)->m().canceled()) {
if (ex.msg() == std::string("canceled") && mk_c(c)->m().canceled()) {
to_optimize_ptr(o)->set_reason_unknown(ex.msg());
}
else {

View file

@ -577,7 +577,7 @@ private:
symbol const& peek(unsigned i) { return tok.peek(i); }
bool try_accept(char * token) {
bool try_accept(char const * token) {
if (peek(0) == token) {
tok.next();
return true;

View file

@ -19,6 +19,8 @@ Revision History:
#ifndef FILE_PATH_H_
#define FILE_PATH_H_
#include<string.h>
inline char const * get_extension(char const * file_name) {
if (file_name == 0)
return 0;