fix asm_expr_unary()
keep unary unsigned. problem is exposed on i386 with unary like 0xC0000000. In this case a sign is extended in pe->v = n; if n declared as long.
This commit is contained in:
parent
f2a4cb0a0e
commit
3f233ab127
1 changed files with 1 additions and 1 deletions
2
tccasm.c
2
tccasm.c
|
@ -42,7 +42,7 @@ static void asm_expr_unary(TCCState *s1, ExprValue *pe)
|
|||
{
|
||||
Sym *sym;
|
||||
int op, label;
|
||||
long n;
|
||||
unsigned long n;
|
||||
const char *p;
|
||||
|
||||
switch(tok) {
|
||||
|
|
Loading…
Reference in a new issue