[openbeosnetteam] Re: Another crash...
- From: "Marcus Overhagen" <dos4gw@xxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Tue, 19 Mar 2002 14:53:37 +0100
"Marcus Overhagen" <dos4gw@xxxxxx> wrote:
This one is wrong
> int realsize = (size + 4 + B_PAGE_SIZE - 1) & B_PAGE_SIZE;
needs to be
int realsize = (size + 4 + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
same with this one
> char *staradr = ((char *)ptr - 4) & B_PAGE_SIZE;
char *staradr = ((char *)ptr - 4) & ~(B_PAGE_SIZE - 1);
Marcus
- Follow-Ups:
- [openbeosnetteam] CVS Access
- From: Cain O'Sullivan
Other related posts:
- » [openbeosnetteam] Another crash...
- » [openbeosnetteam] Re: Another crash...
- » [openbeosnetteam] Re: Another crash...
- » [openbeosnetteam] Re: Another crash...
- » [openbeosnetteam] Re: Another crash...
- » [openbeosnetteam] Re: Another crash...
- [openbeosnetteam] CVS Access
- From: Cain O'Sullivan