fix compiler warnings

This commit is contained in:
Mattias Harrysson
2014-06-02 20:52:44 +02:00
parent b96ee06bb6
commit f72fb80ac9
2 changed files with 3 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ updateVertex(
return it->second;
}
assert(in_positions.size() > (3*i.v_idx+2));
assert(in_positions.size() > (unsigned int) (3*i.v_idx+2));
positions.push_back(in_positions[3*i.v_idx+0]);
positions.push_back(in_positions[3*i.v_idx+1]);
@@ -721,4 +721,4 @@ std::string LoadObj(
}
};
}

View File

@@ -97,6 +97,6 @@ std::string LoadObj(
std::string LoadMtl (
std::map<std::string, material_t>& material_map,
std::istream& inStream);
};
}
#endif // _TINY_OBJ_LOADER_H