Skip to content

Commit

Permalink
ignore 0 symbol offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
BoyC committed Apr 8, 2024
1 parent f98e981 commit c0d065d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kkp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ void KKP::AddSymbol( const KKPSymbol& symbol )
{
currNode->cumulativePackedSize += symbol.packedSize;
currNode->cumulativeUnpackedSize += symbol.unpackedSize;
currNode->sourcePos = min( currNode->sourcePos, symbol.sourcePos );
if ( symbol.sourcePos )
currNode->sourcePos = min( currNode->sourcePos, symbol.sourcePos );

bool found = false;
for ( auto& c : currNode->children )
Expand Down

0 comments on commit c0d065d

Please sign in to comment.