Fix clang warnings
Explicitly convert unsigned int to uint64_t before converting them to uint16x4_t or uint8x8_t. BUG=chromium:1035559 Change-Id: I7d0084c1ab9393063a15972a714d89db4e5e1afe Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260981 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
84f13d0345
commit
9e0afb791a
@ -428,7 +428,7 @@ static void decode_packed_coordinates_and_weight(U32 packed, Out* v0, Out* v1, O
|
||||
tmp = vmul_u16(tmp, vscale); // multiply result by scale
|
||||
}
|
||||
|
||||
vres = vshrn_n_u16(vcombine_u16(tmp, vcreate_u16(0)), 8); // shift down result by 8
|
||||
vres = vshrn_n_u16(vcombine_u16(tmp, vcreate_u16((uint64_t)0)), 8); // shift down result by 8
|
||||
vst1_lane_u32(dst, vreinterpret_u32_u8(vres), 0); // store result
|
||||
}
|
||||
#else
|
||||
|
@ -354,7 +354,7 @@ void blit_row_s32a_opaque(SkPMColor* dst, const SkPMColor* src, int len, U8CPU a
|
||||
}
|
||||
|
||||
if (len != 0) {
|
||||
uint8x8_t result = SkPMSrcOver_neon2(vcreate_u8(*dst), vcreate_u8(*src));
|
||||
uint8x8_t result = SkPMSrcOver_neon2(vcreate_u8((uint64_t)*dst), vcreate_u8((uint64_t)*src));
|
||||
vst1_lane_u32(dst, vreinterpret_u32_u8(result), 0);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user