Commit 8b7c7cc9 authored by Samuel Coleman's avatar Samuel Coleman Committed by Jamie
Browse files

zephyr: flash map: fix comparison signedness



This resolves a warning when building with `-Wsign-compare`.

`struct flash_area.fa_size` is declared as `size_t` in the Zephyr source
tree (in `include/zephyr/storage/flash_map.h`).

Signed-off-by: default avatarSamuel Coleman <samuel.coleman@rbr-global.com>
parent b92d4dd7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ int flash_area_get_sector(const struct flash_area *fap, off_t off,
    struct flash_pages_info fpi;
    int rc;

    if (off >= fap->fa_size) {
    if (off < 0 || (size_t) off >= fap->fa_size) {
        return -ERANGE;
    }