fix directive_binary

This commit is contained in:
Bernd Boeckmann
2023-04-12 13:50:19 +02:00
parent b4ee1c648c
commit 965adf2f2f

View File

@@ -315,7 +315,7 @@ char *err_msg[] = {
"string expected",
"can not read file",
"maximum file stack size exceeded",
"byte sized value expected",
"byte sized value expected"
};
#define ERROR_NORM 1
@@ -445,11 +445,6 @@ void skip_curr_and_white(char **p)
}
}
int first_number(char c)
{
return c == '$' || c == '%' || isdigit(c);
}
value number(char **p)
{
value num= {0,0};
@@ -1250,7 +1245,7 @@ void directive_binary(char **p, int pass)
skip_white(p);
if (**p == ',') {
skip_curr_and_white(p);
if (first_number(**p)) skip = expr(p);
skip = expr(p);
skip_white(p);
if (**p == ',') {
skip_curr_and_white(p);