Don't use long for DDS magic number

It's a DWORD (i.e. 32bit int) according to spec, so using long is
actually wrong when sizeof(long) == 8.
This commit is contained in:
Daniel Gibson 2012-06-23 01:50:29 +02:00 committed by dhewg
parent 0d27bfe7b9
commit 600531ec98

View file

@ -1400,7 +1400,7 @@ bool idImage::CheckPrecompressedImage( bool fullLoad ) {
fileSystem->CloseFile( f );
unsigned long magic = LittleLong( *(unsigned long *)data );
unsigned int magic = LittleLong( *(unsigned int *)data );
ddsFileHeader_t *_header = (ddsFileHeader_t *)(data + 4);
int ddspf_dwFlags = LittleLong( _header->ddspf.dwFlags );