Alex Henrie : d3dcompiler_43: Turn variable 'c' into a static constant.
Alexandre Julliard
julliard at winehq.org
Mon Nov 12 16:26:55 CST 2018
Module: wine
Branch: master
Commit: cbae62ba9e427216a45cfd88f113178684169d59
URL: https://source.winehq.org/git/wine.git/?a=commit;h=cbae62ba9e427216a45cfd88f113178684169d59
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Sun Nov 11 20:51:37 2018 -0700
d3dcompiler_43: Turn variable 'c' into a static constant.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dcompiler_43/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dcompiler_43/utils.c b/dlls/d3dcompiler_43/utils.c
index 748501f..bda41c4 100644
--- a/dlls/d3dcompiler_43/utils.c
+++ b/dlls/d3dcompiler_43/utils.c
@@ -2176,7 +2176,7 @@ static void debug_dump_ir_swizzle(const struct hlsl_ir_swizzle *swizzle)
}
else
{
- char c[] = {'x', 'y', 'z', 'w'};
+ static const char c[] = {'x', 'y', 'z', 'w'};
for (i = 0; i < swizzle->node.data_type->dimx; ++i)
TRACE("%c", c[(swizzle->swizzle >> i * 2) & 0x3]);
More information about the wine-cvs
mailing list