Skip to content

Commit bc6f27f

Browse files
committed
resolve warning with explicit type cast
1 parent 18e17d9 commit bc6f27f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libheif/codecs/uncompressed/unc_codec.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,13 +989,13 @@ Error fill_cmpd_and_uncC(std::shared_ptr<Box_cmpd>& cmpd,
989989

990990
int bpp = image->get_bits_per_pixel(heif_channel_Y);
991991
heif_uncompressed_component_format format = to_unc_component_format(image, heif_channel_Y);
992-
Box_uncC::Component component0 = {0, (uint8_t) (bpp), format, 0};
992+
Box_uncC::Component component0 = {0, (uint8_t) (bpp), (uint8_t) format, 0};
993993
uncC->add_component(component0);
994994

995995
if (save_alpha_channel && image->has_channel(heif_channel_Alpha)) {
996996
heif_uncompressed_component_format format_alpha = to_unc_component_format(image, heif_channel_Alpha);
997997
bpp = image->get_bits_per_pixel(heif_channel_Alpha);
998-
Box_uncC::Component component1 = {1, (uint8_t) (bpp), format_alpha, 0};
998+
Box_uncC::Component component1 = {1, (uint8_t) (bpp), (uint8_t) format_alpha, 0};
999999
uncC->add_component(component1);
10001000
}
10011001

0 commit comments

Comments
 (0)