bugfix : fix level 4 compiler warnings for Visual studio 2012.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1323 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/6/merge
kimmi 2012-10-27 19:41:56 +00:00
parent 2a580c5518
commit 39ae26bfd8
3 changed files with 8 additions and 8 deletions

View File

@ -684,7 +684,7 @@ void SMDImporter::ParseFile()
const char* szCurrent = mBuffer;
// read line per line ...
while (true)
for ( ;; )
{
if(!SkipSpacesAndLineEnd(szCurrent,&szCurrent)) break;
@ -750,7 +750,7 @@ unsigned int SMDImporter::GetTextureIndex(const std::string& filename)
void SMDImporter::ParseNodesSection(const char* szCurrent,
const char** szCurrentOut)
{
while (true)
for ( ;; )
{
// "end\n" - Ends the nodes section
if (0 == ASSIMP_strincmp(szCurrent,"end",3) &&
@ -772,7 +772,7 @@ void SMDImporter::ParseTrianglesSection(const char* szCurrent,
{
// Parse a triangle, parse another triangle, parse the next triangle ...
// and so on until we reach a token that looks quite similar to "end"
while (true)
for ( ;; )
{
if(!SkipSpacesAndLineEnd(szCurrent,&szCurrent)) break;
@ -790,7 +790,7 @@ void SMDImporter::ParseVASection(const char* szCurrent,
const char** szCurrentOut)
{
unsigned int iCurIndex = 0;
while (true)
for ( ;; )
{
if(!SkipSpacesAndLineEnd(szCurrent,&szCurrent)) break;
@ -833,7 +833,7 @@ void SMDImporter::ParseSkeletonSection(const char* szCurrent,
const char** szCurrentOut)
{
int iTime = 0;
while (true)
for ( ;; )
{
if(!SkipSpacesAndLineEnd(szCurrent,&szCurrent)) break;
@ -887,7 +887,7 @@ void SMDImporter::ParseNodeInfo(const char* szCurrent,
else ++szCurrent;
const char* szEnd = szCurrent;
while (true)
for ( ;; )
{
if (bQuota && '\"' == *szEnd)
{

View File

@ -203,7 +203,7 @@ void STLImporter::LoadASCIIFile()
pMesh->mNormals = new aiVector3D[pMesh->mNumVertices];
unsigned int curFace = 0, curVertex = 3;
while (true)
for ( ;; )
{
// go to the next token
if(!SkipSpacesAndLineEnd(&sz))

View File

@ -87,7 +87,7 @@ inline unsigned int ASSIMP_itoa10( char* out, unsigned int max, int32_t number)
// print all future zeroes from now
mustPrint = true;
*out++ = '0'+digit;
*out++ = '0'+static_cast<char>(digit);
++written;
number -= digit*cur;