diff options
Diffstat (limited to 'ubi-utils/new-utils/src/libscan.c')
-rw-r--r-- | ubi-utils/new-utils/src/libscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ubi-utils/new-utils/src/libscan.c b/ubi-utils/new-utils/src/libscan.c index 3427498..da13b1b 100644 --- a/ubi-utils/new-utils/src/libscan.c +++ b/ubi-utils/new-utils/src/libscan.c @@ -154,7 +154,7 @@ int ubi_scan(struct mtd_info *mtd, struct ubi_scan_info **info, int verbose) } } else { - if (be32_to_cpu(hdr.vid_hdr_offset) != si->vid_hdr_offs) { + if ((int)be32_to_cpu(hdr.vid_hdr_offset) != si->vid_hdr_offs) { if (pr) printf("\n"); if (v) @@ -168,7 +168,7 @@ int ubi_scan(struct mtd_info *mtd, struct ubi_scan_info **info, int verbose) si->ec[eb] = EB_CORRUPTED; continue; } - if (be32_to_cpu(hdr.data_offset) != si->data_offs) { + if ((int)be32_to_cpu(hdr.data_offset) != si->data_offs) { if (pr) printf("\n"); if (v) |