[Orxonox-commit 2581] r7286 - code/trunk/src/libraries/core/command

dafrick at orxonox.net dafrick at orxonox.net
Tue Aug 31 10:09:12 CEST 2010


Author: dafrick
Date: 2010-08-31 10:09:12 +0200 (Tue, 31 Aug 2010)
New Revision: 7286

Modified:
   code/trunk/src/libraries/core/command/CommandEvaluation.cc
Log:
Now compiles under linux (ubuntu 10.04) as well. 


Modified: code/trunk/src/libraries/core/command/CommandEvaluation.cc
===================================================================
--- code/trunk/src/libraries/core/command/CommandEvaluation.cc	2010-08-31 01:51:37 UTC (rev 7285)
+++ code/trunk/src/libraries/core/command/CommandEvaluation.cc	2010-08-31 08:09:12 UTC (rev 7286)
@@ -274,7 +274,7 @@
             size_t max = this->hintArgumentsOffset_ + this->hintCommand_->getExecutor()->getParamCount();
 
             for (size_t i = 0; i < argumentID; ++i)
-                param[i] = this->getToken(std::min(this->getNumberOfArguments(), max) - i - 1);
+                param[i] = this->getToken(std::min(this->getNumberOfArguments(), (unsigned int)max) - i - 1);
 
             if (this->getNumberOfArguments() > max)
             {




More information about the Orxonox-commit mailing list