Skip to content

Commit b9c410b

Browse files
test: fix pointer sign compiler errors in paths and encode_lavc
1 parent 9c096d7 commit b9c410b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

common/encode_lavc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ static void encoder_2pass_prepare(struct encoder_context *p)
800800
if (s) {
801801
struct bstr content = stream_read_complete(s, p, 1000000000);
802802
if (content.start) {
803-
p->encoder->stats_in = content.start;
803+
p->encoder->stats_in = (char *)content.start;
804804
} else {
805805
MP_WARN(p, "could not read '%s', "
806806
"disabling 2-pass encoding at pass 1\n", filename);

test/paths.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int main(void)
8888
p++;
8989
}
9090
#endif
91-
TEST_NORMALIZE(dst.start, "foo");
91+
TEST_NORMALIZE((char *)dst.start, "foo");
9292
talloc_free(ctx);
9393

9494
#if HAVE_DOS_PATHS

0 commit comments

Comments
 (0)