Alex Henrie : d3dcompiler: Turn variable 'components' into a static constant.
Alexandre Julliard
julliard at winehq.org
Tue Dec 4 16:33:56 CST 2018
Module: wine
Branch: master
Commit: 358b814873c73822b641e5d5eba57631768af392
URL: https://source.winehq.org/git/wine.git/?a=commit;h=358b814873c73822b641e5d5eba57631768af392
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Mon Dec 3 21:42:51 2018 -0700
d3dcompiler: Turn variable 'components' into a static constant.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dcompiler_43/utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dcompiler_43/utils.c b/dlls/d3dcompiler_43/utils.c
index bda41c4..5499b8c 100644
--- a/dlls/d3dcompiler_43/utils.c
+++ b/dlls/d3dcompiler_43/utils.c
@@ -2138,7 +2138,8 @@ static void debug_dump_ir_constructor(const struct hlsl_ir_constructor *construc
static const char *debug_writemask(DWORD writemask)
{
- char string[5], components[] = {'x', 'y', 'z', 'w'};
+ static const char components[] = {'x', 'y', 'z', 'w'};
+ char string[5];
unsigned int i = 0, pos = 0;
while (writemask)
More information about the wine-cvs
mailing list