From 601aa570f143d17a514dd7e21a53546fd14a71f7 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Mon, 7 Sep 2015 23:09:50 +0200 Subject: [PATCH] d3d9: Avoid shift overflow in render_state_test_data_init. Same patch as just a minute ago, alas fro d3d9 instead of d3d8. Gerald --- dlls/d3d9/tests/stateblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3d9/tests/stateblock.c b/dlls/d3d9/tests/stateblock.c index 1d033de7a3e..bb89ba011e6 100644 --- a/dlls/d3d9/tests/stateblock.c +++ b/dlls/d3d9/tests/stateblock.c @@ -1384,7 +1384,7 @@ static void render_state_test_data_init(struct render_state_data *data) data->states[idx++] = TRUE; /* ALPHABLENDENABLE */ data->states[idx++] = TRUE; /* FOGENABLE */ data->states[idx++] = TRUE; /* SPECULARENABLE */ - data->states[idx++] = 1 << 31; /* FOGCOLOR */ + data->states[idx++] = 1u << 31; /* FOGCOLOR */ data->states[idx++] = D3DFOG_EXP; /* FOGTABLEMODE */ data->states[idx++] = to_dword(0.1f); /* FOGSTART */ data->states[idx++] = to_dword(0.8f); /* FOGEND */ -- 2.11.4.GIT