diff options
author | Giovanni Mascellani <gmascellani@codeweavers.com> | 2021-09-30 16:54:10 +0300 |
---|---|---|
committer | Giovanni Mascellani <gmascellani@codeweavers.com> | 2021-10-01 16:45:15 +0300 |
commit | 5dc544ee1f471d28abc267bca03bc555f6a2bfa1 (patch) | |
tree | 15006332431fd4859576c8c8b081e0d3a94b3d3b | |
parent | 89aa08ca36d1fcbad1cff01d2621be1d59e6b53c (diff) |
GIO: Fix compilation with Proton.proton_6.3-vkd3d2
-rw-r--r-- | libs/vkd3d-shader/dxbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |