widl: Print EXPR_NUM expresssions as unsigned to avoid printing an extra negative sign when lval is large.

This commit is contained in:
Rob Shearman 2007-02-26 15:06:21 +00:00 committed by Alexandre Julliard
parent 3bd31cfd16
commit 94a0a90165
2 changed files with 2 additions and 2 deletions

View File

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

View File

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