Pārlūkot izejas kodu

Added parenthesis for explicit operator evaluation priority.

Marcel Metz 13 gadi atpakaļ
vecāks
revīzija
8d0b76a535
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      tools/assimp_view/Material.cpp
  2. 1 1
      tools/assimp_view/MessageProc.cpp

+ 1 - 1
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);

+ 1 - 1
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);