summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98b0b57)
raw | patch | inline | side by side (parent: 98b0b57)
author | David Lide <a0216552@gtudci01.(none)> | |
Fri, 22 May 2015 16:55:55 +0000 (12:55 -0400) | ||
committer | David Lide <a0216552@gtudci01.(none)> | |
Fri, 22 May 2015 16:55:55 +0000 (12:55 -0400) |
ti/runtime/hplib/src/bm_alloc.c | patch | blob | history |
index 0a7dd14131483794a3ebce7eb1c529f810b85cd0..5e1763397d94731cdef5ded34343ad025cd89caf 100755 (executable)
int ewpos, ebpos;
int szinpages = size/pCtx->PSZ;
if (off > pCtx->maxsize) return;
- if (szinpages*pCtx->PSZ != sz) sz = (szinpages+1)*pCtx->PSZ;
+ if (szinpages*pCtx->PSZ != size) size = (szinpages+1)*pCtx->PSZ;
wpos= bmToWordBit(pCtx, off, &bpos);
ewpos= bmToWordBit(pCtx, off+size, &ebpos);
//adjust by 1