Skip to content

Commit

Permalink
better fix for symbol clash
Browse files Browse the repository at this point in the history
  • Loading branch information
BoyC committed Apr 6, 2024
1 parent f9151c1 commit cef3fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kkp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ void KKP::LoadSym(const std::string& fileName)

int maxSymbolID = 0;
for (auto& symbol : kkp.sortableSymbols)
maxSymbolID = max(maxSymbolID, symbol.originalSymbolID) + 1;
maxSymbolID = max(maxSymbolID, symbol.originalSymbolID);

for (int x = 0; x < symbolCount; x++)
{
Expand All @@ -413,7 +413,7 @@ void KKP::LoadSym(const std::string& fileName)
symbol.isCode = false;
symbol.fileID = -1;
symbol.sourcePos = -1;
symbol.originalSymbolID = x + maxSymbolID;
symbol.originalSymbolID = x + maxSymbolID + 1;
newSymbols.emplace_back(symbol);
}

Expand Down

0 comments on commit cef3fe1

Please sign in to comment.