aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-08-16 10:30:13 -0700
committerChris Robinson <[email protected]>2012-08-16 10:30:13 -0700
commit3c395a82db5de3c3866dc853f43bd9c23fb02f25 (patch)
treed9d4627bbc3d84a1f9ca9b0f78ae4068d35267eb /Alc/helpers.c
parent15c6b9b165f95a90d413b81ec5a3a430b81a4160 (diff)
Fix aligned allocator fallback
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index bf83bcbf..f18d36e4 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -135,7 +135,7 @@ void *al_malloc(size_t alignment, size_t size)
{
*(ret++) = 0x00;
while(((ALintptrEXT)ret&(alignment-1)) != 0)
- *(ret++) = 0xAA;
+ *(ret++) = 0x55;
}
return ret;
#endif
@@ -158,10 +158,9 @@ void al_free(void *ptr)
char *finder = ptr;
do {
--finder;
- } while(*finder == 0xAA);
+ } while(*finder == 0x55);
free(finder);
}
- return ret;
#endif
}