Skip double-checking overflow in byte output

This commit is contained in:
ISSOtm
2020-02-09 15:43:45 +01:00
parent aa90a53f34
commit ffe9e92b48

View File

@@ -222,7 +222,7 @@ void out_AbsByteGroup(char const *s, int32_t length)
checkcodesection(); checkcodesection();
checksectionoverflow(length); checksectionoverflow(length);
while (length--) while (length--)
out_AbsByte(*s++); absByteBypassCheck(*s++);
} }
/* /*
@@ -241,7 +241,7 @@ void out_Skip(int32_t skip)
} else { } else {
checkcodesection(); checkcodesection();
while (skip--) while (skip--)
out_AbsByte(CurrentOptions.fillchar); absByteBypassCheck(CurrentOptions.fillchar);
} }
} }
@@ -253,7 +253,7 @@ void out_String(char const *s)
checkcodesection(); checkcodesection();
checksectionoverflow(strlen(s)); checksectionoverflow(strlen(s));
while (*s) while (*s)
out_AbsByte(*s++); absByteBypassCheck(*s++);
} }
/* /*
@@ -270,7 +270,7 @@ void out_RelByte(struct Expression *expr)
pCurrentSection->nPC++; pCurrentSection->nPC++;
nPC++; nPC++;
} else { } else {
out_AbsByte(expr->nVal); absByteBypassCheck(expr->nVal);
} }
rpn_Free(expr); rpn_Free(expr);
} }