Commit f19a91cb authored by Tom Finegan's avatar Tom Finegan

Fix a couple of visual studio nightly build failures.

- Add explicit cast of bool to int to silence a test warning.
- Add explicit cast of size_t to int for same in dump_obu.

Change-Id: I90846eb5c88880d921f20cb66b116ab7d2799af5
parent b3167a65
......@@ -146,7 +146,7 @@ TEST(IntrabcTest, DvValidation) {
tile.mi_col_start = 24 * MAX_MIB_SIZE;
tile.mi_col_end = tile.mi_col_start + kTileMaxMibWidth * MAX_MIB_SIZE;
for (int i = 0; i < static_cast<int>(GTEST_ARRAY_SIZE_(kDvCases)); ++i) {
EXPECT_EQ(kDvCases[i].valid,
EXPECT_EQ(static_cast<int>(kDvCases[i].valid),
av1_is_dv_valid(kDvCases[i].dv, &tile,
tile.mi_row_start + kDvCases[i].mi_row_offset,
tile.mi_col_start + kDvCases[i].mi_col_offset,
......
......@@ -138,7 +138,8 @@ int main(int argc, const char *argv[]) {
int unit_number = 0;
while (ReadTemporalUnit(&input_ctx, &unit_size)) {
printf("Temporal unit %d\n", unit_number);
if (!aom_tools::DumpObu(input_ctx.unit_buffer, unit_size)) {
if (!aom_tools::DumpObu(input_ctx.unit_buffer,
static_cast<int>(unit_size))) {
fprintf(stderr, "Error: Temporal Unit parse failed on unit number %d.\n",
unit_number);
return EXIT_FAILURE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment