mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
fixed warnings on Win64
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
8015d8b79a
commit
7f210d55be
|
@ -41,7 +41,7 @@ void context_params::set_bool(bool & opt, char const * param, char const * value
|
|||
|
||||
void context_params::set(char const * param, char const * value) {
|
||||
std::string p = param;
|
||||
unsigned n = p.size();
|
||||
unsigned n = static_cast<unsigned>(p.size());
|
||||
for (unsigned i = 0; i < n; i++) {
|
||||
if (p[i] >= 'A' && p[i] <= 'Z')
|
||||
p[i] = p[i] - 'A' + 'a';
|
||||
|
|
|
@ -165,7 +165,7 @@ public:
|
|||
if (*name == ':')
|
||||
name++;
|
||||
std::string tmp = name;
|
||||
unsigned n = tmp.size();
|
||||
unsigned n = static_cast<unsigned>(tmp.size());
|
||||
for (unsigned i = 0; i < n; i++) {
|
||||
if (tmp[i] >= 'A' && tmp[i] <= 'Z')
|
||||
tmp[i] = tmp[i] - 'A' + 'a';
|
||||
|
|
|
@ -29,7 +29,7 @@ std::string norm_param_name(char const * n) {
|
|||
if (*n == ':')
|
||||
n++;
|
||||
std::string r = n;
|
||||
unsigned sz = r.size();
|
||||
unsigned sz = static_cast<unsigned>(r.size());
|
||||
if (sz == 0)
|
||||
return "_";
|
||||
for (unsigned i = 0; i < sz; i++) {
|
||||
|
@ -135,7 +135,7 @@ struct param_descrs::imp {
|
|||
if (smt2_style)
|
||||
out << ':';
|
||||
char const * s = it2->bare_str();
|
||||
unsigned n = strlen(s);
|
||||
unsigned n = static_cast<unsigned>(strlen(s));
|
||||
for (unsigned i = 0; i < n; i++) {
|
||||
if (smt2_style && s[i] == '_')
|
||||
out << '-';
|
||||
|
|
Loading…
Reference in a new issue