Skip to content

Commit 4adb7c1

Browse files
fix: pointer sign warnings
1 parent ce9cc7a commit 4adb7c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

video/out/d3d11/ra_d3d11.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ static void save_cached_program(struct ra *ra, struct ra_renderpass *pass,
16141614
strncpy(header.compiler, spirv->name, sizeof(header.compiler));
16151615

16161616
struct bstr *prog = &pass->params.cached_program;
1617-
bstr_xappend(pass, prog, (bstr){ (char *) &header, sizeof(header) });
1617+
bstr_xappend(pass, prog, (bstr){ (unsigned char *) &header, sizeof(header) });
16181618
bstr_xappend(pass, prog, vert_bc);
16191619
bstr_xappend(pass, prog, frag_bc);
16201620
bstr_xappend(pass, prog, comp_bc);
@@ -1825,7 +1825,7 @@ static void renderpass_run_raster(struct ra *ra,
18251825

18261826
ID3D11DeviceContext_IASetInputLayout(p->ctx, pass_p->layout);
18271827
ID3D11DeviceContext_IASetVertexBuffers(p->ctx, 0, 1, &p->vbuf,
1828-
&pass->params.vertex_stride, &vbuf_offset);
1828+
(const unsigned int *)&pass->params.vertex_stride, &vbuf_offset);
18291829
ID3D11DeviceContext_IASetPrimitiveTopology(p->ctx,
18301830
D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
18311831

video/out/gpu/spirv_shaderc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static bool shaderc_init(struct ra_ctx *ctx)
3636
if (ctx->opts.debug)
3737
shaderc_compile_options_set_generate_debug_info(p->opts);
3838

39-
int ver, rev;
39+
unsigned int ver, rev;
4040
shaderc_get_spv_version(&ver, &rev);
4141
ctx->spirv->compiler_version = ver * 100 + rev; // forwards compatibility
4242
ctx->spirv->glsl_version = 450; // impossible to query?

0 commit comments

Comments
 (0)