@@ -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
0 commit comments