Minor Windows fixes.

This commit is contained in:
Par Winzell 2018-03-29 06:46:19 -07:00
parent 542550192c
commit 3bfe56b71f
2 changed files with 2 additions and 2 deletions

View File

@ -594,7 +594,7 @@ size_t RawModel::CalculateNormals(bool onlyBroken)
std::set<int> brokenVerts;
for (int vertIx = 0; vertIx < vertices.size(); vertIx ++) {
RawVertex &vertex = vertices[vertIx];
averagePos += (vertex.position / vertices.size());
averagePos += (vertex.position / (float)vertices.size());
if (onlyBroken && (vertex.normal.LengthSquared() >= FLT_MIN)) {
continue;
}

View File

@ -74,7 +74,7 @@ namespace StringUtils {
inline const std::string GetFileSuffixString(const std::string &path)
{
const std::string fileName = GetFileNameString(path);
unsigned long pos = fileName.rfind('.');
size_t pos = fileName.rfind('.');
if (pos == std::string::npos) {
return "";
}