Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
clang throws an error if fixed comparisons are against NULL
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+3
−3
src/audio/sampman_oal.cpp
There are no files selected for viewing
|
|
@@ -587,16 +587,16 @@ cSampleManager::Initialise(void) |
|
|
} |
|
|
|
|
|
nSampleBankMemoryStartAddress[SAMPLEBANK_MAIN] = (uintptr)malloc(nSampleBankSize[SAMPLEBANK_MAIN]); |
|
|
ASSERT(nSampleBankMemoryStartAddress[SAMPLEBANK_MAIN] != NULL); |
|
|
ASSERT(nSampleBankMemoryStartAddress[SAMPLEBANK_MAIN] != 0); |
|
|
|
|
|
if ( nSampleBankMemoryStartAddress[SAMPLEBANK_MAIN] == NULL ) |
|
|
if ( nSampleBankMemoryStartAddress[SAMPLEBANK_MAIN] == 0 ) |
|
|
{ |
|
|
Terminate(); |
|
|
return false; |
|
|
} |
|
|
|
|
|
nSampleBankMemoryStartAddress[SAMPLEBANK_PED] = (uintptr)malloc(PED_BLOCKSIZE*MAX_PEDSFX); |
|
|
ASSERT(nSampleBankMemoryStartAddress[SAMPLEBANK_PED] != NULL); |
|
|
ASSERT(nSampleBankMemoryStartAddress[SAMPLEBANK_PED] != 0); |
|
|
} |
|
|
|
|
|
|
|
|
|