From 4344bb19847ac4f6c05c36e8127f43be852b2fdc Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 24 Mar 2013 21:12:43 +0000 Subject: [PATCH] Silence some warnings in the misc directory Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3826 --- src/misc/setup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()) {