diff --git a/src/misc/setup.cpp b/src/misc/setup.cpp index 7adc02b9..6aa7b917 100644 --- a/src/misc/setup.cpp +++ b/src/misc/setup.cpp @@ -288,7 +288,7 @@ bool Prop_string::CheckValue(Value const& in, bool warn){ return true; } if((*it).ToString() == "%u") { - Bitu value; + Bit32u value; if(sscanf(in.ToString().c_str(),"%u",&value) == 1) { return true; } @@ -651,7 +651,7 @@ bool Config::PrintConfig(char const * const configfilename) const { } i=0; char prefix[80]; - snprintf(prefix,80, "\n# %*s ", maxwidth, ""); + snprintf(prefix,80, "\n# %*s ", (int)maxwidth, ""); while ((p = sec->Get_prop(i++))) { std::string help = p->Get_help(); std::string::size_type pos = std::string::npos; @@ -659,7 +659,7 @@ bool Config::PrintConfig(char const * const configfilename) const { help.replace(pos, 1, prefix); } - fprintf(outfile, "# %*s: %s", maxwidth, p->propname.c_str(), help.c_str()); + fprintf(outfile, "# %*s: %s", (int)maxwidth, p->propname.c_str(), help.c_str()); std::vector values = p->GetValues(); if (!values.empty()) {