From 06047bc958b6cf19b9b729ae6c598a5800ff445f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 22 Sep 2017 05:00:43 +0200 Subject: [PATCH] Update --- deps/libFLAC/memory.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deps/libFLAC/memory.c b/deps/libFLAC/memory.c index a8ebd10fb1..41cc446034 100644 --- a/deps/libFLAC/memory.c +++ b/deps/libFLAC/memory.c @@ -75,7 +75,7 @@ FLAC__bool FLAC__memory_alloc_aligned_int32_array(size_t elements, FLAC__int32 * if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ return false; - pu = FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); + pu = (FLAC__int32*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); if(0 == pu) { return false; } @@ -104,7 +104,7 @@ FLAC__bool FLAC__memory_alloc_aligned_uint32_array(size_t elements, FLAC__uint32 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ return false; - pu = FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); + pu = (FLAC__uint32*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); if(0 == pu) { return false; } @@ -133,7 +133,7 @@ FLAC__bool FLAC__memory_alloc_aligned_uint64_array(size_t elements, FLAC__uint64 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ return false; - pu = FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); + pu = (FLAC__uint64*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); if(0 == pu) { return false; } @@ -162,7 +162,7 @@ FLAC__bool FLAC__memory_alloc_aligned_unsigned_array(size_t elements, unsigned * if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ return false; - pu = FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); + pu = (unsigned int*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); if(0 == pu) { return false; } @@ -193,7 +193,7 @@ FLAC__bool FLAC__memory_alloc_aligned_real_array(size_t elements, FLAC__real **u if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ return false; - pu = FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); + pu = (FLAC__real*)FLAC__memory_alloc_aligned(sizeof(*pu) * elements, &u.pv); if(0 == pu) { return false; }