Commit 6f927c6f authored by wlott's avatar wlott
Browse files

Fixed sign error in os_reallocate that made it thing it should shrink the

region when it should be grown, and vice verca.
parent 3cc64006
......@@ -60,8 +60,8 @@ os_vm_size_t old_len, len;
if(addr==NULL)
return os_allocate(len);
else{
long len_diff=old_len-len;
long len_diff=len-old_len;
if(len_diff<0)
os_invalidate(addr+len,-len_diff);
else if(len_diff!=0){
......
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