diff options
Diffstat (limited to 'src/lib/cbfs_core.c')
-rw-r--r-- | src/lib/cbfs_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cbfs_core.c b/src/lib/cbfs_core.c index 19cf83a41d..5e83a4e4ff 100644 --- a/src/lib/cbfs_core.c +++ b/src/lib/cbfs_core.c @@ -220,7 +220,7 @@ int cbfs_decompress(int algo, void *src, void *dst, int len) case CBFS_COMPRESS_NONE: /* Reads need to be aligned at 4 bytes to avoid poor flash performance. */ - while (len && ((u32)src & 3)) { + while (len && ((uintptr_t)src & 3)) { *(u8*)dst++ = *(u8*)src++; len--; } |