From 5dc544ee1f471d28abc267bca03bc555f6a2bfa1 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 30 Sep 2021 15:54:10 +0200 Subject: GIO: Fix compilation with Proton. --- libs/vkd3d-shader/dxbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/dxbc.c b/libs/vkd3d-shader/dxbc.c index 86cd0ec0..eeadf277 100644 --- a/libs/vkd3d-shader/dxbc.c +++ b/libs/vkd3d-shader/dxbc.c @@ -1544,7 +1544,7 @@ void shader_sm4_read_instruction(struct vkd3d_shader_parser *parser, struct vkd3 WARN("End of byte-code, failed to read opcode.\n"); goto fail; } - remaining = sm4->end - *ptr; + remaining = sm4->end - (const DWORD*)*ptr; opcode_token = *(*ptr)++; opcode = opcode_token & VKD3D_SM4_OPCODE_MASK; -- cgit v1.2.3