summaryrefslogtreecommitdiff
path: root/util/cbfstool
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2015-05-09 08:36:28 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-05-09 14:58:13 +0200
commitc7a8c3835d095405cf875d6952e348c023c7c5a0 (patch)
tree9694599f9585ca1255fd3b9023fb1b028cca013e /util/cbfstool
parent94383da335bea7fb92d3c15943e0458a4c6e29f6 (diff)
downloadcoreboot-c7a8c3835d095405cf875d6952e348c023c7c5a0.tar.xz
cbfstool: fix 32bit host issue
Change-Id: Iaec748b4bdbb5da287520fbbd7c3794bf664eff6 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/10161 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Sol Boucher <solb@chromium.org>
Diffstat (limited to 'util/cbfstool')
-rw-r--r--util/cbfstool/partitioned_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/partitioned_file.c b/util/cbfstool/partitioned_file.c
index 6473963f1f..700a2d34c1 100644
--- a/util/cbfstool/partitioned_file.c
+++ b/util/cbfstool/partitioned_file.c
@@ -201,7 +201,7 @@ partitioned_file_t *partitioned_file_reopen(const char *filename,
const struct fmap_area *fmap_fmap_entry =
fmap_find_area(file->fmap, SECTION_NAME_FMAP);
- if (fmap_fmap_entry->offset != fmap_region_offset) {
+ if ((long)fmap_fmap_entry->offset != fmap_region_offset) {
ERROR("FMAP's '%s' section doesn't point back to FMAP start (did something corrupt this file?)\n",
SECTION_NAME_FMAP);
partitioned_file_close(file);