forked from teamnwah/openmw-tes3coop
		
	Fix comparison of integers of different signs
Clang reported comparison of unsigned long with long. This cast should fix it.
This commit is contained in:
		
							parent
							
								
									e6e02714a0
								
							
						
					
					
						commit
						48e2ec2840
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -111,7 +111,7 @@ void BSAFile::readHeader()
 | 
				
			||||||
    // Each file must take up at least 21 bytes of data in the bsa. So
 | 
					    // Each file must take up at least 21 bytes of data in the bsa. So
 | 
				
			||||||
    // if files*21 overflows the file size then we are guaranteed that
 | 
					    // if files*21 overflows the file size then we are guaranteed that
 | 
				
			||||||
    // the archive is corrupt.
 | 
					    // the archive is corrupt.
 | 
				
			||||||
    if((filenum*21 > fsize -12) || (dirsize+8*filenum > fsize -12) )
 | 
					    if((filenum*21 > unsigned(fsize -12)) || (dirsize+8*filenum > unsigned(fsize -12)) )
 | 
				
			||||||
        fail("Directory information larger than entire archive");
 | 
					        fail("Directory information larger than entire archive");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Read the offset info into a temporary buffer
 | 
					    // Read the offset info into a temporary buffer
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue