mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
clean up offsetToFrameIndex code
This commit is contained in:
parent
d7d3dd5055
commit
73aa499371
@ -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()) :
|
||||
|
Loading…
Reference in New Issue
Block a user