glcpp: Print integer tokens as decimal, not hex.

This commit is contained in:
Eric Anholt 2010-07-28 16:53:51 -07:00
parent 192b57df8c
commit 8605c297cf
2 changed files with 2 additions and 2 deletions

View file

@ -3041,7 +3041,7 @@ _token_print (char **out, token_t *token)
switch (token->type) {
case INTEGER:
glcpp_printf (*out, "%" PRIxMAX, token->value.ival);
glcpp_printf (*out, "%" PRIiMAX, token->value.ival);
break;
case IDENTIFIER:
case INTEGER_STRING:

View file

@ -736,7 +736,7 @@ _token_print (char **out, token_t *token)
switch (token->type) {
case INTEGER:
glcpp_printf (*out, "%" PRIxMAX, token->value.ival);
glcpp_printf (*out, "%" PRIiMAX, token->value.ival);
break;
case IDENTIFIER:
case INTEGER_STRING: