mirror of
https://github.com/ScrelliCopter/VGM-Tools
synced 2025-02-21 04:09:25 +11:00
malloc cast is unnecessary in C
This commit is contained in:
@@ -38,7 +38,7 @@ void DecodeSample(FILE* fin, const char* name, Buffer* buf)
|
||||
if (!buf->data || buf->size < sampLen)
|
||||
{
|
||||
free(buf->data);
|
||||
buf->data = (uint8_t*)malloc(sampLen);
|
||||
buf->data = malloc(sampLen);
|
||||
buf->size = sampLen;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user