mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 21:29:17 +00:00
[fix][memheap] fix memheap warning
This commit is contained in:
parent
d1e7c32099
commit
ee5bc44d74
3 changed files with 13 additions and 13 deletions
|
@ -86,7 +86,7 @@ void *ATTR_TCM_SECTION arch_memcpy_fast(void *pdst, const void *psrc, uint32_t n
|
|||
uint8_t *dst = (uint8_t *)pdst;
|
||||
uint8_t *src = (uint8_t *)psrc;
|
||||
|
||||
if (((uint32_t)dst & 0x3) == 0 && ((uint32_t)src & 0x3) == 0) {
|
||||
if (((uint32_t)(uintptr_t)dst & 0x3) == 0 && ((uint32_t)(uintptr_t)src & 0x3) == 0) {
|
||||
arch_memcpy4((uint32_t *)dst, (const uint32_t *)src, n >> 2);
|
||||
left = n % 4;
|
||||
done = n - left;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue