widl: Print EXPR_NUM expresssions as unsigned to avoid printing an extra negative sign when lval is large.
This commit is contained in:
parent
3bd31cfd16
commit
94a0a90165
|
@ -363,7 +363,7 @@ void write_expr(FILE *h, const expr_t *e, int brackets)
|
|||
case EXPR_VOID:
|
||||
break;
|
||||
case EXPR_NUM:
|
||||
fprintf(h, "%ld", e->u.lval);
|
||||
fprintf(h, "%lu", e->u.lval);
|
||||
break;
|
||||
case EXPR_HEXNUM:
|
||||
fprintf(h, "0x%lx", e->u.lval);
|
||||
|
|
|
@ -2177,7 +2177,7 @@ static void write_struct_expr(FILE *h, const expr_t *e, int brackets,
|
|||
case EXPR_VOID:
|
||||
break;
|
||||
case EXPR_NUM:
|
||||
fprintf(h, "%ld", e->u.lval);
|
||||
fprintf(h, "%lu", e->u.lval);
|
||||
break;
|
||||
case EXPR_HEXNUM:
|
||||
fprintf(h, "0x%lx", e->u.lval);
|
||||
|
|
Loading…
Reference in New Issue