Skip to content

Commit

Permalink
fix malloc.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryjianjun committed May 18, 2011
1 parent 09071da commit 5bc2957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/libc/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ static char * __current_brk = &heap[0];
/*
* p is an address, a is alignment; must be a power of 2
*/
static inline void * align_up(void * p, uintptr_t a)
static inline void * align_up(void * p, ptrdiff_t a)
{
return (void *)(((uintptr_t) p + a - 1) & ~(a - 1));
return (void *)(((ptrdiff_t) p + a - 1) & ~(a - 1));
}

static void * __brk(void * end)
Expand Down

0 comments on commit 5bc2957

Please sign in to comment.