diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-16 10:57:01 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-16 17:40:38 +0200 |
commit | ff178beee572564dcfabd96d04071edcb3412e5d (patch) | |
tree | 50114dee5b62a8495dcc885644952b4645f43e76 /src/lib/cbfs_core.c | |
parent | f33d270d972f101341d7273267b8215dfff61cf5 (diff) | |
download | coreboot-ff178beee572564dcfabd96d04071edcb3412e5d.tar.xz |
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>
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--; } |