lib/cbfs: more cleanup for 32/64 issues

Change-Id: I5499a99cec82b464c5146cfc2008d683d079b23a
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/7068
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Ronald G. Minnich
2014-10-16 10:57:01 +00:00
parent f33d270d97
commit ff178beee5
2 changed files with 3 additions and 3 deletions

View File

@@ -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--;
}