Fix non ISO compliant use of ternary operator.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@654 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-04-06 00:27:46 +00:00
parent 4d2d4a64e0
commit a391303910
1 changed files with 3 additions and 2 deletions

View File

@ -938,8 +938,9 @@ public:
~chunk_guard() {
// don't do anything if the size is not given
nfo.size != static_cast<unsigned int>(-1) ? reader.IncPtr(static_cast<int>(nfo.size)-
reader.GetCurrentPos()+cur) : 0;
if(nfo.size != static_cast<unsigned int>(-1)) {
reader.IncPtr(static_cast<int>(nfo.size)-reader.GetCurrentPos()+cur);
}
}
private: