diff options
author | Eric Anholt <[email protected]> | 2010-07-28 16:53:51 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-28 17:32:11 -0700 |
commit | 8605c297cfb8068737991601f163f866395c41c9 (patch) | |
tree | bff3ebbd87870e3bf4742098c275d3761c81eb13 /src | |
parent | 192b57df8c451c7ae39e5471124a9bab36ec17f8 (diff) |
glcpp: Print integer tokens as decimal, not hex.
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.c | 2 | ||||
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.c b/src/glsl/glcpp/glcpp-parse.c index 8fbbdab52fc..bfbd97f3d83 100644 --- a/src/glsl/glcpp/glcpp-parse.c +++ b/src/glsl/glcpp/glcpp-parse.c @@ -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: diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index c6ff32e544c..2009aeaf8a2 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -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: |