mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +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;
|
unsigned normalizedOffset = offset / BytesPerWord;
|
||||||
|
|
||||||
return ((normalizedOffset
|
return ((normalizedOffset >= c->alignedFrameSize) ?
|
||||||
>= usableFrameSize(c)
|
|
||||||
+ c->arch->frameFooterSize()) ?
|
|
||||||
(normalizedOffset
|
(normalizedOffset
|
||||||
- (c->arch->frameFooterSize() * 2)
|
- (c->arch->frameFooterSize() * 2)
|
||||||
- c->arch->frameHeaderSize()) :
|
- c->arch->frameHeaderSize()) :
|
||||||
|
Loading…
Reference in New Issue
Block a user