From ffe9e92b4878ccc21ef49df7c8f0234c16059aa3 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 9 Feb 2020 15:43:45 +0100 Subject: [PATCH] Skip double-checking overflow in byte output --- src/asm/section.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/asm/section.c b/src/asm/section.c index 16057716..1379adf6 100644 --- a/src/asm/section.c +++ b/src/asm/section.c @@ -222,7 +222,7 @@ void out_AbsByteGroup(char const *s, int32_t length) checkcodesection(); checksectionoverflow(length); while (length--) - out_AbsByte(*s++); + absByteBypassCheck(*s++); } /* @@ -241,7 +241,7 @@ void out_Skip(int32_t skip) } else { checkcodesection(); while (skip--) - out_AbsByte(CurrentOptions.fillchar); + absByteBypassCheck(CurrentOptions.fillchar); } } @@ -253,7 +253,7 @@ void out_String(char const *s) checkcodesection(); checksectionoverflow(strlen(s)); while (*s) - out_AbsByte(*s++); + absByteBypassCheck(*s++); } /* @@ -270,7 +270,7 @@ void out_RelByte(struct Expression *expr) pCurrentSection->nPC++; nPC++; } else { - out_AbsByte(expr->nVal); + absByteBypassCheck(expr->nVal); } rpn_Free(expr); }