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.
master
seyko 2016-05-16 08:53:24 +03:00
parent f2a4cb0a0e
commit 3f233ab127
1 changed files with 1 additions and 1 deletions

View File

@ -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) {