clean up offsetToFrameIndex code

This commit is contained in:
Joel Dice 2009-02-26 18:53:35 -07:00
parent d7d3dd5055
commit 73aa499371

View File

@ -666,9 +666,7 @@ offsetToFrameIndex(Context* c, unsigned offset)
{
unsigned normalizedOffset = offset / BytesPerWord;
return ((normalizedOffset
>= usableFrameSize(c)
+ c->arch->frameFooterSize()) ?
return ((normalizedOffset >= c->alignedFrameSize) ?
(normalizedOffset
- (c->arch->frameFooterSize() * 2)
- c->arch->frameHeaderSize()) :