diff options
author | Michal Krol <[email protected]> | 2009-09-22 12:51:08 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-22 12:51:08 +0200 |
commit | 0481e85af7195e13c30580afba233a80feeee740 (patch) | |
tree | 6c9d69005a67424d41b6a1a04c9ab1dee087b796 /src/glsl/pp/sl_pp_macro.c | |
parent | bb32b0908ff0d3a99758abd46356676fc1ec2369 (diff) |
glsl/pp: Differentiate between integer and floating-point number tokens.
Diffstat (limited to 'src/glsl/pp/sl_pp_macro.c')
-rw-r--r-- | src/glsl/pp/sl_pp_macro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/pp/sl_pp_macro.c b/src/glsl/pp/sl_pp_macro.c index 878b22ed9c3..3956ba3b574 100644 --- a/src/glsl/pp/sl_pp_macro.c +++ b/src/glsl/pp/sl_pp_macro.c @@ -105,8 +105,8 @@ _out_number(struct sl_pp_context *context, sprintf(buf, "%u", number); - ti.token = SL_PP_NUMBER; - ti.data.number = sl_pp_context_add_unique_str(context, buf); + ti.token = SL_PP_UINT; + ti.data._uint = sl_pp_context_add_unique_str(context, buf); if (sl_pp_process_out(state, &ti)) { strcpy(context->error_msg, "out of memory"); return -1; |