Updated pseudo.c to issue error on negative count in FILL.

This commit is contained in:
waltje
2023-09-16 15:59:27 -04:00
parent 3558c5ea0f
commit b921d166fe
2 changed files with 5 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
*
* Handle directives and pseudo-ops.
*
* Version: @(#)pseudo.c 1.0.10 2023/06/24
* Version: @(#)pseudo.c 1.0.11 2023/09/16
*
* Authors: Fred N. van Kempen, <waltje@varcem.com>
* Bernd B”ckmann, <https://codeberg.org/boeckmann/asm6502>
@@ -655,6 +655,8 @@ do_fill(char **p, int pass)
if ((pass == 2) && UNDEFINED(v))
error(ERR_UNDEF, NULL);
count = v.v;
if (count < 0)
error(ERR_RNG, NULL);
skip_white(p);
if (**p == ',') {

View File

@@ -8,7 +8,7 @@
*
* Define application version and build info.
*
* Version: @(#)version.h 1.0.11 2023/09/08
* Version: @(#)version.h 1.0.12 2023/09/16
*
* Author: Fred N. van Kempen, <waltje@varcem.com>
*
@@ -56,7 +56,7 @@
#define APP_VER_MAJOR 1
#define APP_VER_MINOR 0
#define APP_VER_REV 20
#define APP_VER_PATCH 1
#define APP_VER_PATCH 2
/* Standard C preprocessor macros. */