From b4a0933a10f36ed2bb8004e5d925df8ed50a3ae3 Mon Sep 17 00:00:00 2001 From: rinechran Date: Sat, 13 Apr 2024 21:55:51 +0900 Subject: [PATCH] sw_engine : type cast compile error --- src/renderer/sw_engine/tvgSwRasterNeon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/sw_engine/tvgSwRasterNeon.h b/src/renderer/sw_engine/tvgSwRasterNeon.h index 30d8813c..6b631fdf 100644 --- a/src/renderer/sw_engine/tvgSwRasterNeon.h +++ b/src/renderer/sw_engine/tvgSwRasterNeon.h @@ -86,7 +86,7 @@ static bool neonRasterTranslucentRle(SwSurface* surface, const SwRleData* rle, u auto dst = &surface->buf32[span->y * surface->stride + span->x]; auto ialpha = IA(src); - if ((((uint32_t) dst) & 0x7) != 0) { + if ((((uintptr_t) dst) & 0x7) != 0) { //fill not aligned byte *dst = src + ALPHA_BLEND(*dst, ialpha); vDst = (uint8x8_t*)(dst + 1); @@ -133,7 +133,7 @@ static bool neonRasterTranslucentRect(SwSurface* surface, const SwBBox& region, for (uint32_t y = 0; y < h; ++y) { auto dst = &buffer[y * surface->stride]; - if ((((uint32_t) dst) & 0x7) != 0) { + if ((((uintptr_t) dst) & 0x7) != 0) { //fill not aligned byte *dst = color + ALPHA_BLEND(*dst, ialpha); vDst = (uint8x8_t*) (dst + 1);