Commit ada01fca authored by legoyb's avatar legoyb
Browse files

Sync

parent cff3894c
......@@ -17,7 +17,7 @@ unsigned long knuth_mmix_one_round(unsigned long in)
void *mark_memarea_and_get_user_ptr(void *ptr, unsigned long size, MemKind k)
{
unsigned long magic_value = knuth_mmix_one_round(* (unsigned long *) ptr) & ~(0b11UL) & (unsigned long) k;
unsigned long magic_value = knuth_mmix_one_round((unsigned long) ptr) & ~(0b11UL) & (unsigned long) k;
unsigned long real_size = size + 32;
// Set First 16 bytes
......@@ -37,7 +37,7 @@ Alloc
mark_check_and_get_alloc(void *ptr)
{
// Compute Magic Value
unsigned long gen_magic_value = knuth_mmix_one_round(* (unsigned long *) (ptr - 16)) & ~(0b11UL);
unsigned long gen_magic_value = knuth_mmix_one_round((unsigned long) (ptr - 16)) & ~(0b11UL);
// Get 16 First bytes
unsigned long real_size = * (unsigned long *) (ptr - 16);
......
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