summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r--src/glsl/glcpp/glcpp-parse.c2
-rw-r--r--src/glsl/glcpp/glcpp-parse.y2
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: