mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
fix errors
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
10894069b0
commit
734d48fa33
|
@ -141,7 +141,7 @@ extern "C" {
|
||||||
}
|
}
|
||||||
catch (z3_exception& ex) {
|
catch (z3_exception& ex) {
|
||||||
r = l_undef;
|
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());
|
to_optimize_ptr(o)->set_reason_unknown(ex.msg());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -577,7 +577,7 @@ private:
|
||||||
|
|
||||||
symbol const& peek(unsigned i) { return tok.peek(i); }
|
symbol const& peek(unsigned i) { return tok.peek(i); }
|
||||||
|
|
||||||
bool try_accept(char * token) {
|
bool try_accept(char const * token) {
|
||||||
if (peek(0) == token) {
|
if (peek(0) == token) {
|
||||||
tok.next();
|
tok.next();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -19,6 +19,8 @@ Revision History:
|
||||||
#ifndef FILE_PATH_H_
|
#ifndef FILE_PATH_H_
|
||||||
#define FILE_PATH_H_
|
#define FILE_PATH_H_
|
||||||
|
|
||||||
|
#include<string.h>
|
||||||
|
|
||||||
inline char const * get_extension(char const * file_name) {
|
inline char const * get_extension(char const * file_name) {
|
||||||
if (file_name == 0)
|
if (file_name == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue