Skip to content

Commit

Permalink
Merge pull request #54223 from miraz12/fix-cast-llvm-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Oct 25, 2021
2 parents a29cca6 + fb7ba76 commit 82a9995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/io/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ static void _scale_bilinear(const uint8_t *__restrict p_src, uint8_t *__restrict
uint32_t interp_down = p01 + (((p11 - p01) * src_xofs_frac) >> FRAC_BITS);
uint32_t interp = interp_up + (((interp_down - interp_up) * src_yofs_frac) >> FRAC_BITS);
interp >>= FRAC_BITS;
p_dst[i * p_dst_width * CC + j * CC + l] = interp;
p_dst[i * p_dst_width * CC + j * CC + l] = uint8_t(interp);
} else if (sizeof(T) == 2) { //half float

float xofs_frac = float(src_xofs_frac) / (1 << FRAC_BITS);
Expand Down

0 comments on commit 82a9995

Please sign in to comment.