1
0
mirror of https://github.com/fachat/xa65.git synced 2025-03-20 02:30:40 +00:00

fix unnecessary octal for '0'

This commit is contained in:
A. Fachat 2012-12-26 21:50:34 +01:00
parent a09aa0df40
commit 33605e1024

@ -2185,11 +2185,17 @@ fprintf(stderr, "could not find %s\n", (char *)s+p);
tg_hex(s+p+2, &ll, &v);
p+=2+ll;
wval(q, v, '$');
} else {
// c-style octal
} else
if (isdigit(s[p+1])) {
// c-style octal if digit follows
tg_oct(s+p+1,&ll,&v);
p+=1+ll;
wval(q,v, '&');
} else {
// else use decimal (0)
tg_dez(s+p,&ll,&v);
p+=ll;
wval(q,v, 'd');
}
break;
case '$':