Commit 94a0a901 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Print EXPR_NUM expresssions as unsigned to avoid printing an extra…

widl: Print EXPR_NUM expresssions as unsigned to avoid printing an extra negative sign when lval is large.
parent 3bd31cfd
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment