From 060085616746353543a4a6aefb9a8a05a82461ee Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 23 Jul 2020 01:06:28 +0200 Subject: [PATCH] Move incbin slice sign check The grammar's message is pretty generic, so this one is more useful. --- src/asm/asmy.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asm/asmy.y b/src/asm/asmy.y index d51e683c..d4f9d93f 100644 --- a/src/asm/asmy.y +++ b/src/asm/asmy.y @@ -1077,7 +1077,7 @@ incbin : T_POP_INCBIN string { if (oFailedOnMissingInclude) YYACCEPT; } - | T_POP_INCBIN string ',' uconst ',' uconst { + | T_POP_INCBIN string ',' const ',' const { out_BinaryFileSlice($2, $4, $6); if (oFailedOnMissingInclude) YYACCEPT;