aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/apps/tokenise.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/apps/tokenise.c')
-rw-r--r--src/glsl/apps/tokenise.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/glsl/apps/tokenise.c b/src/glsl/apps/tokenise.c
index 2b3ebcf283d..9f95424f5c8 100644
--- a/src/glsl/apps/tokenise.c
+++ b/src/glsl/apps/tokenise.c
@@ -314,8 +314,12 @@ main(int argc,
fprintf(out, "%s ", sl_pp_context_cstr(context, tokens[i].data.identifier));
break;
- case SL_PP_NUMBER:
- fprintf(out, "(%s) ", sl_pp_context_cstr(context, tokens[i].data.number));
+ case SL_PP_UINT:
+ fprintf(out, "(%s) ", sl_pp_context_cstr(context, tokens[i].data._uint));
+ break;
+
+ case SL_PP_FLOAT:
+ fprintf(out, "(%s) ", sl_pp_context_cstr(context, tokens[i].data._float));
break;
case SL_PP_OTHER: