Fixing warnings

This commit is contained in:
2017-07-09 20:13:48 -07:00
parent 3a1bfa8179
commit 460b52ad11
6 changed files with 44 additions and 36 deletions

View File

@@ -98,7 +98,7 @@ std::vector<KRResource *> KRResource::LoadObj(KRContext &context, const std::str
// -----=====----- Populate vertexes and faces -----=====-----
int *pFaces = (int *)malloc(sizeof(int *) * (cFaces + 1));
int *pFaces = (int *)malloc(sizeof(int) * (cFaces + 1));
assert(pFaces != NULL);
std::vector<KRVector3> indexed_vertices;
@@ -337,4 +337,4 @@ std::vector<KRResource *> KRResource::LoadObj(KRContext &context, const std::str
}
return resources;
}
}