From c7a8c3835d095405cf875d6952e348c023c7c5a0 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 9 May 2015 08:36:28 +0200 Subject: cbfstool: fix 32bit host issue Change-Id: Iaec748b4bdbb5da287520fbbd7c3794bf664eff6 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/10161 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Sol Boucher --- util/cbfstool/partitioned_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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); -- cgit v1.2.3