Commit 96fc1c74 authored by Jules Sang's avatar Jules Sang
Browse files

more tests pass

parent 0c570959
......@@ -31,7 +31,7 @@ mark_check_and_get_alloc(void *ptr)
{
unsigned long size = *((unsigned long*) (ptr - 2 * sizeof(unsigned long)));
unsigned long magic_number = *((unsigned long*) (ptr - sizeof(unsigned long)));
MemKind k = (MemKind) magic_number;
MemKind k = magic_number & 0b11UL;
unsigned long expected_magic_number = (knuth_mmix_one_round((unsigned long) (ptr - 2 * sizeof(unsigned long))) & ~(0b11UL)) | k;
assert(magic_number == expected_magic_number);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment