1
0
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:
2019-10-01 23:50:01 +10:00
parent 07ee0b546c
commit 6510096f90

View File

@@ -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;
}