fixed windows 64-bit warnings.

This commit is contained in:
Nick Bolton
2013-04-10 15:04:14 +00:00
parent 11cdee4aa3
commit 9cd8023e92
2 changed files with 5 additions and 5 deletions

View File

@@ -300,10 +300,10 @@ CDaemonApp::handleIpcMessage(const CEvent& e, void*)
LOG((CLOG_DEBUG "new command, elevate=%d command=%s", cm->elevate(), command.c_str()));
CString debugArg("--debug");
int debugArgPos = command.find(debugArg);
UInt32 debugArgPos = static_cast<UInt32>(command.find(debugArg));
if (debugArgPos != CString::npos) {
int from = debugArgPos + debugArg.size() + 1;
int nextSpace = command.find(" ", from);
UInt32 from = debugArgPos + static_cast<UInt32>(debugArg.size()) + 1;
UInt32 nextSpace = static_cast<UInt32>(command.find(" ", from));
CString logLevel(command.substr(from, nextSpace - from));
try {