Displaying 1 result from an estimated 1 matches for "aligned_address".
2007 Apr 15
2
Patch : Fix pointer cast warning
..._CHECK_SIZEOF(void*,0)
+
#@@@ new name is AC_CONFIG_HEADERS
AM_CONFIG_HEADER(config.h)
diff -u -r1.19 memory.c
--- src/libFLAC/memory.c 2 Feb 2007 06:58:22 -0000 1.19
+++ src/libFLAC/memory.c 15 Apr 2007 07:06:44 -0000
@@ -38,25 +38,26 @@
void *FLAC__memory_alloc_aligned(size_t bytes, void **aligned_address)
{
- void *x;
+ char *x;
+ unsigned increment;
FLAC__ASSERT(0 != aligned_address);
#ifdef FLAC__ALIGN_MALLOC_DATA
/* align on 32-byte (256-bit) boundary */
x = malloc(bytes+31);
- /* there's got to be a better way to do this right for all archs */
- if(sizeof(void*) == sizeof(unsign...