shithub: mc

Download patch

ref: ac713e58b7a309587fbbe4571c31f8f5683e2f67
parent: 11f0b71e1df81a2764d6dc0de9903f9a6d6ef7a6
author: Ori Bernstein <[email protected]>
date: Thu Jan 9 18:06:49 EST 2014

Fix allocator alignment calculations.

--- a/libstd/alloc.myr
+++ b/libstd/alloc.myr
@@ -127,7 +127,7 @@
 	phdr.cap = allocsz(sz) - align(sizeof(slheader), Align)
 	phdr.magic = (0xdeadbeefbadf00d castto(size))
 
-	prest = align((p castto(size)) + sizeof(slheader), Align)
+	prest = (p castto(size)) + align(sizeof(slheader), Align)
 	-> prest castto(byte#)
 }