From 8d0b76a5359f5cc3d3a91b97aadf5d82d79e495e Mon Sep 17 00:00:00 2001 From: Marcel Metz Date: Mon, 12 Mar 2012 16:04:08 +0100 Subject: [PATCH] Added parenthesis for explicit operator evaluation priority. --- tools/assimp_view/Material.cpp | 2 +- tools/assimp_view/MessageProc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/assimp_view/Material.cpp b/tools/assimp_view/Material.cpp index 3abef7b15..6f9aac341 100644 --- a/tools/assimp_view/Material.cpp +++ b/tools/assimp_view/Material.cpp @@ -299,7 +299,7 @@ int CMaterialManager::FindValidPath(aiString* p_szString) if( !q ) q=strrchr( tmp2,'\\' ); if( q ){ strcpy( q+1,p+1 ); - if(pFile=fopen( tmp2,"r" ) ){ + if((pFile=fopen( tmp2,"r" ))){ fclose( pFile ); strcpy(p_szString->data,tmp2); p_szString->length = strlen(tmp2); diff --git a/tools/assimp_view/MessageProc.cpp b/tools/assimp_view/MessageProc.cpp index 14bf0a446..e4ecd0448 100644 --- a/tools/assimp_view/MessageProc.cpp +++ b/tools/assimp_view/MessageProc.cpp @@ -99,7 +99,7 @@ void MakeFileAssociations() RegSetValueEx(g_hRegistry,"",0,REG_SZ,(const BYTE*)"ASSIMPVIEW_CLASS",(DWORD)strlen("ASSIMPVIEW_CLASS")+1); RegCloseKey(g_hRegistry); } - while (sz = strtok(NULL,";")); + while ((sz = strtok(NULL,";"))); RegCreateKeyEx(HKEY_CURRENT_USER,"Software\\Classes\\ASSIMPVIEW_CLASS",NULL,NULL,0,KEY_ALL_ACCESS, NULL, &g_hRegistry,NULL); RegCloseKey(g_hRegistry);