diff --git a/common/lc_colors.cpp b/common/lc_colors.cpp
index bf26df47..40c60fd1 100644
--- a/common/lc_colors.cpp
+++ b/common/lc_colors.cpp
@@ -405,7 +405,7 @@ void lcLoadDefaultColors()
int lcGetColorIndex(quint32 ColorCode)
{
- for (int ColorIdx = 0; ColorIdx < gColorList.size(); ColorIdx++)
+ for (size_t ColorIdx = 0; ColorIdx < gColorList.size(); ColorIdx++)
if (gColorList[ColorIdx].Code == ColorCode)
return ColorIdx;
diff --git a/common/project.cpp b/common/project.cpp
index bf09da95..3b6c4652 100644
--- a/common/project.cpp
+++ b/common/project.cpp
@@ -713,11 +713,11 @@ void Project::Export3DStudio(const QString& FileName)
const int MaterialNameLength = 11;
char MaterialName[32];
- for (int ColorIdx = 0; ColorIdx < gColorList.size(); ColorIdx++)
+ for (size_t ColorIdx = 0; ColorIdx < gColorList.size(); ColorIdx++)
{
lcColor* Color = &gColorList[ColorIdx];
- sprintf(MaterialName, "Material%03d", ColorIdx);
+ sprintf(MaterialName, "Material%03d", (int)ColorIdx);
long MaterialStart = File.GetPosition();
File.WriteU16(0xAFFF); // CHK_MAT_ENTRY
@@ -1701,7 +1701,7 @@ void Project::CreateHTMLPieceList(QTextStream& Stream, lcModel* Model, lcStep St
Stream << QLatin1String("