diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-23 14:09:01 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-23 15:49:15 (GMT) |
commit | 6b072a0c0a756a099d8dfd7827918be5adf7bf1f (patch) | |
tree | 4d6e92481cdf3420656604797353a91673489364 /tools/configure/environment.cpp | |
parent | 74ce3dea8b3ea06d61cef4e729f6a95f670461fe (diff) | |
download | Qt-6b072a0c0a756a099d8dfd7827918be5adf7bf1f.zip Qt-6b072a0c0a756a099d8dfd7827918be5adf7bf1f.tar.gz Qt-6b072a0c0a756a099d8dfd7827918be5adf7bf1f.tar.bz2 |
compile fix for mingw (also removes some warnings)
Diffstat (limited to 'tools/configure/environment.cpp')
-rw-r--r-- | tools/configure/environment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/configure/environment.cpp b/tools/configure/environment.cpp index e93f9a0..74bebb2 100644 --- a/tools/configure/environment.cpp +++ b/tools/configure/environment.cpp @@ -357,7 +357,7 @@ int Environment::execute(QStringList arguments, const QStringList &additionalEnv QString args = qt_create_commandline(program, arguments); QByteArray envlist = qt_create_environment(fullEnv); - DWORD exitCode = -1; + DWORD exitCode = DWORD(-1); PROCESS_INFORMATION procInfo; memset(&procInfo, 0, sizeof(procInfo)); @@ -378,7 +378,7 @@ int Environment::execute(QStringList arguments, const QStringList &additionalEnv } - if (exitCode == -1) { + if (exitCode == DWORD(-1)) { switch(GetLastError()) { case E2BIG: cerr << "execute: Argument list exceeds 1024 bytes" << endl; |