diff --git a/src/RawModel.cpp b/src/RawModel.cpp index 27a10fa..230b180 100644 --- a/src/RawModel.cpp +++ b/src/RawModel.cpp @@ -594,7 +594,7 @@ size_t RawModel::CalculateNormals(bool onlyBroken) std::set 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; } diff --git a/src/utils/String_Utils.h b/src/utils/String_Utils.h index 9f8c0ee..7b78078 100644 --- a/src/utils/String_Utils.h +++ b/src/utils/String_Utils.h @@ -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 ""; }