mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-03 16:27:47 +00:00
Don't cast calls to malloc().
This commit is contained in:
@@ -130,8 +130,7 @@ void copyrept( void )
|
||||
src=pCurrentBuffer->pBuffer;
|
||||
ulNewMacroSize=len;
|
||||
|
||||
if( (tzNewMacro=(char *)malloc(ulNewMacroSize+1))!=NULL )
|
||||
{
|
||||
if ((tzNewMacro = malloc(ulNewMacroSize + 1)) != NULL) {
|
||||
ULONG i;
|
||||
|
||||
tzNewMacro[ulNewMacroSize]=0;
|
||||
@@ -140,8 +139,7 @@ void copyrept( void )
|
||||
if( (tzNewMacro[i]=src[i])=='\n' )
|
||||
nLineNo+=1;
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
fatalerror( "No mem for REPT block" );
|
||||
|
||||
yyskipbytes( ulNewMacroSize+4 );
|
||||
|
||||
Reference in New Issue
Block a user