diff --git a/apps/essimporter/convertacdt.cpp b/apps/essimporter/convertacdt.cpp index d9823a6c2a..defdab8a1a 100644 --- a/apps/essimporter/convertacdt.cpp +++ b/apps/essimporter/convertacdt.cpp @@ -48,8 +48,8 @@ namespace ESSImport for (int i = 0; i < ESM::Skill::Length; ++i) { npcStats.mSkills[i].mMod = 0.f; - npcStats.mSkills[i].mCurrent = actorData.mSkills[i][1]; - npcStats.mSkills[i].mBase = actorData.mSkills[i][0]; + npcStats.mSkills[i].mCurrent = static_cast(actorData.mSkills[i][1]); + npcStats.mSkills[i].mBase = static_cast(actorData.mSkills[i][0]); } npcStats.mTimeToStartDrowning = actorData.mACDT.mBreathMeter; diff --git a/apps/essimporter/converter.cpp b/apps/essimporter/converter.cpp index d439552d53..3e6b293f2c 100644 --- a/apps/essimporter/converter.cpp +++ b/apps/essimporter/converter.cpp @@ -18,7 +18,7 @@ namespace { - void convertImage(char* data, int size, int width, int height, GLenum pf, const std::string& out) + void convertImage(char* data, size_t size, int width, int height, GLenum pf, const std::string& out) { osg::ref_ptr image(new osg::Image); image->allocateImage(width, height, 1, pf, GL_UNSIGNED_BYTE);