Fixed: Compilation warnings

This commit is contained in:
kervala 2015-02-14 12:41:59 +01:00
parent 8fcd432074
commit c510dcde2e
6 changed files with 9 additions and 9 deletions

View file

@ -218,7 +218,7 @@ protected:
date*= previous->OODeltaTime;
NLMISC::clamp(date, 0,1);
date = this->ease(previous, date);
date = this->ease(previous, (float)date);
float hb[4];
this->computeHermiteBasis(date, hb);

View file

@ -231,7 +231,7 @@ bool CFormElm::isAtom () const
const CType* CFormElm::getType ()
{
warning (false, "getType", "This node is not an atom.");
return 0;
return NULL;
}
// ***************************************************************************

View file

@ -573,7 +573,7 @@ namespace ADMIN
time_t t = now;
fprintf(fp, "AESReportDate=%s", ::ctime(&t));
fprintf(fp, "NBService=%u\n", _ServiceStates.size());
fprintf(fp, "NBService=%u\n", (uint)_ServiceStates.size());
// output state of each service
TServiceStates::iterator first(_ServiceStates.begin()), last(_ServiceStates.end());
for (; first != last; ++first)

View file

@ -101,12 +101,12 @@ public:
{
}
CMsgAIFeedback(std::string message)
CMsgAIFeedback(const std::string &message)
{
Message=message;
}
CMsgAIFeedback(char *msgStr)
CMsgAIFeedback(const char *msgStr)
{
Message=std::string(msgStr);
}

View file

@ -242,11 +242,11 @@ float CItemCraftParameters::getCraftParameterValue( RM_FABER_STAT_TYPE::TRMStatT
case RM_FABER_STAT_TYPE::ShockWaveProtection:
case RM_FABER_STAT_TYPE::PoisonProtection:
case RM_FABER_STAT_TYPE::ElectricityProtection:
if (Protection1 == statType)
if (Protection1 == (PROTECTION_TYPE::TProtectionType)statType)
return Protection1Factor;
else if (Protection2 == statType)
else if (Protection2 == (PROTECTION_TYPE::TProtectionType)statType)
return Protection2Factor;
else if (Protection3 == statType)
else if (Protection3 == (PROTECTION_TYPE::TProtectionType)statType)
return Protection3Factor;
else return 0.0f;
case RM_FABER_STAT_TYPE::DesertResistance:

View file

@ -650,7 +650,7 @@ bool CStringManager::parseBlock(const ucstring &block, CPhrase &phrase)
&& (first - clause.String.begin()) == (sint) clause.Replacements[repCount].InsertPlace)
{
// check parameter type
char *subst;
const char *subst;
uint paramIndex = clause.Replacements[repCount].ParamIndex;
TParamId &paramId = phrase.Params[paramIndex]->ParamId;