Use section's offset instead of general one

That's more future-proof and makes more sense
This commit is contained in:
ISSOtm
2020-02-09 16:13:20 +01:00
parent d9c1b66931
commit f121119283

View File

@@ -346,7 +346,7 @@ void out_CreatePatch(uint32_t type, struct Expression *expr)
pPatch->nType = type;
fstk_DumpToStr(pPatch->tzFilename, sizeof(pPatch->tzFilename));
pPatch->nLine = nLineNo;
pPatch->nOffset = nPC;
pPatch->nOffset = pCurrentSection->nPC;
while ((rpndata = rpn_PopByte(expr)) != 0xDEAD) {
switch (rpndata) {