allow negative numbers in #emit
This commit is contained in:
parent
1697d6f8b5
commit
3234a29eb1
@ -1343,8 +1343,20 @@ static int command(void)
|
||||
} /* if */
|
||||
break;
|
||||
default: {
|
||||
char s2[20];
|
||||
extern char *sc_tokens[];/* forward declaration */
|
||||
if ((char)tok == '-') {
|
||||
if (lex(&val, &str) == tNUMBER) {
|
||||
outval(-val, FALSE);
|
||||
code_idx += opargs(1);
|
||||
break;
|
||||
} else {
|
||||
char s2[33] = "-";
|
||||
strcpy((s2 + 1), str);
|
||||
error(1, sc_tokens[tSYMBOL - tFIRST], s2);
|
||||
break;
|
||||
}/* if */
|
||||
}/* if */
|
||||
char s2[20];
|
||||
if (tok<256)
|
||||
sprintf(s2,"%c",(char)tok);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user